1.

What command can be used to show the current working directory?

Answer»

PWD STANDS for PRINT working directory. The pwd command in the Linux OPERATING system is used to print out the current working directory.

Syntax: 

$ pwd [-options]


pwd has options that specify how it should behave. Some of the options are as follows:

  • -L (Logical): This displays the logical path of the current working directory.
  • -P (Physical): This displays the physical or actual path of the current working directory.
  • --Help: This displays a help message and then exits.

Example:

Command:

$ pwd

Ouput:

gourav@scaleracademy:~$ pwd/home/gourav


Discussion

No Comment Found