Astronauts wear special clothes called spacesuits that protect them and give them oxygen so they can breathe in space.
Astronauts eat food stored in packages that stop it from 'flying away'. It consists of peanut butter, fruits, nuts, chicken, beef, etc.; mostly ready-to-eat food is used. Salt and pepper in powder form is never used, as it floats away on sprinkling.