Media playback is unsupported on your device Media captionGen Haftar's forces prepare for Tripoli battleAt least 2,800 people have fled from the fighting near Libya's capital, Tripoli, according to the UN. Other civilians are trapped by the clashes and are cut off from vital emergency services, it says. Forces under Gen Khalifa Haftar began an attack on the city last Thursday with aim of wresting it from Libya's UN-backed government. Prime Minister Fayez al-Serraj has accused Gen Haftar of attempting a coup and says rebels will be met with force. The government says 32 of its fighters have been killed in the fighting while Gen Haftar's forces say they lost at least 14 fighters. A Red Crescent doctor was killed on Saturday. Why is Libya so lawless? Who is military strongman Khalifa Haftar?Earlier the UN appealed for a two-hour truce so casualties and civilians could be evacuated, but fighting continued. In response, the EU and several countries including the US and Russia have called for an end to hostilities. "This unilateral military campaign against Tripoli is endangering civilians and undermining prospects for a better future for all Libyans," said US Secretary of State Mike Pompeo. International powers have begun evacuating personnel from Libya amid the worsening security situation. Libya has been torn by violence and political instability since long-time ruler Muammar Gaddafi was deposed and killed in 2011. What's the situation on the ground? Gen Haftar's Libyan National Army (LNA) forces have been carrying out a multi-pronged attack on Tripoli. The UN said its call for a humanitarian truce had been ignored and emergency services said they had not been able to enter the areas where fighting was taking place. Image copyright Reuters Image caption Fighters from Misrata are helping defend TripoliHowever a UN spokesman told AFP news agency they were "still hoping for a positive response". On Sunday the LNA said it had carried out its first air strike, a day after the UN-backed Government of National Accord (GNA) hit them with air strikes. Fighting has continued around the disused international airport south of the capital that Gen Haftar earlier said his forces had seized. Forces loyal to the GNA have slowed the advance and on Sunday a GNA spokesman told Al-Jazeera TV that the GNA now intended to "cleanse" the whole of the country. What evacuations have already taken place? US Africa Command, responsible for US military operations and liaison in Africa, said that due to the "increased unrest" it had relocated a contingent of US forces temporarily but gave no further details on numbers. There were reports of a fast amphibious craft being used in the operation. India's External Affairs Minister Sushma Swaraj said the country's full contingent of 15 Central Reserve Police Force peacekeepers had been evacuated from Tripoli because the situation in Libya had "suddenly worsened". Image copyright Reuters Image caption A market in Tripoli. Residents are said to be stocking up on suppliesThe Italian multinational oil and gas company Eni decided to evacuate all its Italian personnel from the country. The UN is also due to pull out non-essential staff. Residents of Tripoli have reportedly begun stocking up on food and fuel. But BBC Arab affairs editor Sebastian Usher says many of those near the fighting are remaining in their homes for now, for fear of looting should they leave. Some fear a long operation such as that which Gen Haftar mounted to take the eastern city of Benghazi from Islamist fighters in 2017. Who are the opposing forces? Libya has been wracked by unrest since the overthrow of Gaddafi. Dozens of militias operate in the country. Image copyright AFP Image caption Gen Haftar has ordered his forces to advance on TripoliRecently they have been allying either with the UN-backed GNA, based in Tripoli, or the LNA of Gen Haftar, a tough anti-Islamist who has the support of Egypt and the UAE and is strong in eastern Libya. Gen Haftar helped Gaddafi seize power in 1969 before falling out with him and going into exile in the US. He returned in 2011 after the uprising against Gaddafi began and became a rebel commander. The unity government was created at talks in 2015 but has struggled to assert national control. Prime Minister Fayez al-Serraj said on Saturday he would defend the capital. Mr Serraj said he had offered concessions to Gen Haftar to avoid bloodshed, only to be "stabbed in the back". Back to square one? Analysis by Rana Jawad, BBC North Africa correspondent, in Tunis The rogue general's defiance suggests that, despite international condemnation of his recent moves, he believes he can only secure a place in Libya's future political makeup through military means. Diplomats are worried because the manner and timing of the attack mean he is unlikely to back down unless he is defeated. Few thought he would go ahead and launch this operation - which he has long threatened to do - because they believed ongoing talks that saw him go from Paris to Palermo and the UAE for more than a year would buy time until a new political settlement was reached through negotiations and an eventual electoral process. Today, Western nations have few cards to play to de-escalate the violence and once again find themselves in a position where they may need to start from scratch. Are peace talks planned? UN-backed talks aimed at drawing up a road map for new elections have been scheduled for 14-16 April in the Libyan city of Ghadames. UN envoy Ghassan Salame insisted the talks would go ahead, unless serious obstacles prevented them, saying "we won't give up this political work quickly". Antonio Guterres, the UN Secretary General, was in Tripoli just last Thursday to discuss the situation but Gen Haftar has said his troops will not stop until they have defeated "terrorism".