What command is used to display your current working directory? A. path B. pwd C. prompt $p$g D. dir E. None of the above

path
pwd
prompt $p$g
dir E. None of the above

The correct answer is B. pwd.

pwd is a command-line utility for Unix and Unix-like operating systems that prints the current working directory. It is a built-in command in most shells, including bash, ksh, and zsh.

The path command is used to list the directories in the current working directory. The prompt $p$g is a prompt that is used by some shells. The dir command is used to list the files in the current directory.

Here is an example of how to use the pwd command:

$ pwd
/home/user

This command prints the current working directory, which is /home/user.

Exit mobile version