Home  >  Article  >  Operation and Maintenance  >  The meaning of pwd command symbol

The meaning of pwd command symbol

藏色散人
藏色散人Original
2020-01-03 11:07:356609browse

The meaning of pwd command symbol

The meaning of the pwd command symbol

1.pwd is the abbreviation of print working directory, which prints the current working directory. It means to display the current directory.

2. Usually the current directory is displayed in the prompt, but it only displays the directory name instead of the full path. For example, the current directory is
/usr/local/etc and the current directory is /etc, prompt etc. is displayed in the symbol. At this time, you can use the pwd command to see which path it is to avoid making mistakes. This is the role of this command.

In the Linux hierarchy, users can use the mkdir command to create a new directory in any authorized directory, or they can use the cd command to switch from one directory to another. However, there is no prompt to tell the user which directory they are currently in. If you want to know the current directory, you can use the pwd command, which displays the entire path name.

Recommended learning: linux tutorial

Linux pwd command

Linux pwd command is used to display the working directory.

Execute the pwd command to immediately know the absolute path name of your current working directory.

Syntax

pwd [--help][--version]

Parameter description:

--help Online help.

--version Display version information.

Example

View the current directory:

# pwd
/root/test           #输出结果

The above is the detailed content of The meaning of pwd command symbol. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn