automated terminal push
All checks were successful
learn org at code.softwareshinobi.com/git.softwareshinobi.com/pipeline/head This commit looks good
All checks were successful
learn org at code.softwareshinobi.com/git.softwareshinobi.com/pipeline/head This commit looks good
This commit is contained in:
40
docs/Linux-Commands/Terminal-Experience/006-the-pwd-command.md
Executable file
40
docs/Linux-Commands/Terminal-Experience/006-the-pwd-command.md
Executable file
@@ -0,0 +1,40 @@
|
||||
# The `pwd` command
|
||||
|
||||
The `pwd` stands for Print Working Directory. It prints the path of the current working directory, starting from the root.
|
||||
|
||||
Example:
|
||||
```
|
||||
pwd
|
||||
```
|
||||
|
||||
The output would be your current directory:
|
||||
|
||||
```
|
||||
/home/your_user/some_directory
|
||||
```
|
||||
|
||||
Syntax:
|
||||
```
|
||||
pwd [OPTION]
|
||||
```
|
||||
|
||||
Tip:
|
||||
You can also check this by printing out the `$PWD` variable:
|
||||
|
||||
```
|
||||
echo $PWD
|
||||
```
|
||||
|
||||
The output would be the same as of the `pwd` command.
|
||||
|
||||
### Options:
|
||||
|
||||
|
||||
|**Short Flag** |**Long Flag** |**Description** |
|
||||
|:---|:---|:---|
|
||||
| `-L` | `--logical` | If the environment variable $PWD contains an absolute name of the current directory with no "." or ".." components, then output those contents, even if they contain symbolic links. Otherwise, fall back to default (-P) behavior. |
|
||||
| `-P`| `--physical` | Print a fully resolved name for the current directory, where all components of the name are actual directory names, and not symbolic links. |
|
||||
| ` ` | `--help`| Display a help message, and exit. |
|
||||
| ` ` | `--version`| Display version information, and exit. |
|
||||
|
||||
By default, `pwd' behaves as if `-L' were specified.
|
||||
Reference in New Issue
Block a user