Multiple choice technology operating systems

What command do you have to use to go to the parent directory?

  1. cd /up

  2. cd ..

  3. cd ~

  4. cd -

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The Unix command cd .. changes the current working directory to its immediate parent directory. The option cd /up is an invalid command, cd ~ navigates to the user's home directory, and cd - toggles back to the previously visited directory, making them incorrect for moving to the parent folder.