What is the syntax of the pwd command in Linux?

When you run the `pwd` command on a Linux terminal, it will display the full path of the current working directory.

Grammar:

pwd [选项]

Please provide one of the following options:

-L, –logical: Display the actual path of the symlink if the current directory is a symbolic link.

-P, –physical: always display the physical path, do not follow symbolic links.

By default, the `pwd` command utilizes the `-P` option.

他们正在进行一项市场调查。
Option: They are conducting a market research.

$ pwd

/home/user/documents

$ pwd -L

/home/user/documents

$ pwd -P

/home/user/documents

Please note that the `pwd` command does not accept any additional parameters or options. It simply displays the path of the current working directory.

bannerAds