Multiple choice technology operating systems

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

  1. cd -

  2. cd ..

  3. cd ~

  4. cd /up

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

In command line navigation, cd .. moves the current working directory up one level to the parent directory. Cd ~ moves to the home directory.