Libya's internationally recognised government has put on a show of strength as it battles various armed groups.