1Z0-821 · Question #99
You are currently working in both your home directory and the system directory /tmp. You are switch back and forth with full path names. Which pair of cd commands will provide you with a shortcut to…
The correct answer is A. cd ~ and cd ? In the Bourne Again, C, Korn, TC, and Z shells, the tilde (~) is used as a shortcut for specifying your home directory. It's the command-line equivalent of the back button (takes you to the previous directory you were To make certain that you are in your home directory, type…
Question
You are currently working in both your home directory and the system directory /tmp. You are switch back and forth with full path names. Which pair of cd commands will provide you with a shortcut to switch between these two locations?
Options
- Acd ~ and cd ?
- Bcd and cd .
- Ccd ~ and cd
- Dcd * and cd . .
How the community answered
(41 responses)- A80% (33)
- B2% (1)
- C10% (4)
- D7% (3)
Explanation
In the Bourne Again, C, Korn, TC, and Z shells, the tilde (~) is used as a shortcut for specifying your home directory. It's the command-line equivalent of the back button (takes you to the previous directory you were To make certain that you are in your home directory, type the cd (change directory) command. This command moves you to your home (default) directory.
Topics
Community Discussion
No community discussion yet for this question.