Where did soldiers sleep during the civil war?

The Confederate soldiers slept on rugs and homemade pillows. While the Union soldiers slept in tents or lean-to's.