Multiple choice technology operating systems

cd - will?

  1. change directory to parent directory

  2. change directory to root directory

  3. change directory to previous working directory

  4. change directory to home directory

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

The command cd - switches to the previous working directory (the directory you were in before the last cd command). This is different from cd .. which goes to the parent directory, cd / which goes to root, or cd alone which goes to home directory. Option C correctly describes this behavior.