- No.
- 5
- Date
- Learning goal
- Terminal Start, lesson 3
- Level
- 2 of 3
Command of the day No. 5: cd -
Purpose: Jumps back to the folder you were in before.
Syntax: cd -
Example:
cd logs
cd -
/home/lerner Output from the simulator, as on a real Linux.
Options:
Try it in the terminal Share image
Fills in the command. Nothing runs until you press Enter. Press Enter, then type cd - and press Enter again: you are back home. Another cd - takes you to logs.