Multiple choice technology programming languages

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
A Correct answer
Explanation

The 'cd ..' command changes to the parent directory (.. refers to parent). 'cd ~' goes to home directory, 'cd -' to previous directory, and 'cd /up' is invalid. Option A is correct.