FUNDAMENTALS OF COMPUTER

OPERATING SYSTEMS FOR COMPUTERS

COMMAND LINE INTERFACE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which command can be entered at the shell to determine in what directory a user is operating?
A
home
B
CD
C
pwd
D
ls
Explanation: 

Detailed explanation-1: -The pwd command can be used to determine the present working directory. and the cd command can be used to change the current working directory.

Detailed explanation-2: -Example 6: Check pwd Version The pwd command is a built-in shell command ( pwd ) and an actual binary ( /bin/pwd ). The shell version may differ from the binary version. The command outputs the binary pwd version on your system. Note: Use the type command to get more information about the pwd command.

Detailed explanation-3: -To determine the exact location of your current directory within the file system, go to a shell prompt and type the command pwd. This tells you that you are in the user sam’s directory, which is in the /home directory. The command pwd stands for print working directory.

Detailed explanation-4: -The pwd command writes to standard output the full path name of your current directory (from the root directory). All directories are separated by a / (slash). The root directory is represented by the first /, and the last directory named is your current directory.

Detailed explanation-5: -Simply type pwd into your terminal, and the command will output the absolute path of your present working directory. In this example, the command has indicated that our present working directory is /home/linuxconfig . There are only two different options available for the pwd command.

There is 1 question to complete.