CALAIS, France — Hundreds of migrants, mostly young men from Africa or Afghanistan, lined up in the cold on Monday for buses to take them to temporary housing all over France, as the government set in motion a plan in the port of Calais to clear the sprawling migrant camp known as the Jungle once and for all.

On Monday, streams of migrants from Afghanistan, Eritrea, Sudan and other conflict-torn countries trucked down the camp’s trash-filled, muddy lanes in small groups, pushing or dragging donated suitcases, or toting knapsacks front and back.

Some had suitcases on their heads; others simply walked out of the camp empty-handed, bundled up against the cold. Hundreds of journalists watched the operation.