terminal.cab
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.

Command of the day No. 5: cd -. Purpose: Jumps back to the folder you were in before. Example: cd logs; cd -. Remember: cd - is the back button of the shell.
The same card as an image, 1080 x 1350 pixels.

Today's card ยท All cards so far