PWD(Print working directory)
Function Description:Displays the working directory.
Syntax:PWD [-- help] [-- version]
Note: When executing the PWD command, you can immediately learn the absolute path name of your current working directory.
Parameters:
-Help Online Help.
-Version: displays the version information.
In Linux (Fedora/Ubuntu/cenos/RedHat), run the PWD command to view the complete path of the "current working directory" (current folder.
This section describes how to use the Linux PWD command, how to use it, how to use it, how to use the Linux PWD command, and how to use the Linux PWD command.
I. Linux PWD permission
Any user can use the PWD command.
Ii. Linux PWD command format
Enter PWD directly on the terminal.
Iii. Linux PWD command function explanation
In Linux, run the PWD command to view the complete path of the "current working directory.
To put it simply, whenever you operate on a terminal, you will have a current working directory. Generally, after the terminal is enabled, the "current working directory" is the user's "Main folder" by default ".
For example, if my user name is "cc", my default current working directory is a folder named "cc.
4. Linux PWD command example
Example 1: run the PWD command to view the full path of the default working directory.
[CC @ CC ~] $ Pwd
The result is as follows:
[CC @ CC ~] $ Pwd
/Home/CC
[CC @ CC ~] $
Example 2: run the PWD command to view the specified folder.
[CC @ CC ~] $ CD it.dengchao.org // enter the it.dengchao.org folder. Of course, you can go to your designated folder [CC @ CC it.dengchao.org] $ pwd
The result is as follows:
[CC @ CC ~] $ CD it.dengchao.org
[CC @ CC it.dengchao.org] $ pwd
/Home/CC/it.dengchao.org
[CC @ CC it.dengchao.org] $