nerdexam
Oracle

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…

Administering Oracle Solaris 11 OS on a Single System

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)
  • A
    80% (33)
  • B
    2% (1)
  • C
    10% (4)
  • D
    7% (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

#cd command#shell navigation#home directory#directory switching

Community Discussion

No community discussion yet for this question.

Full 1Z0-821 Practice