Bash - Print Working directory (pwd)

Bash Liste Des Attaques Ovh

About

pwd displays the absolute pathname of the current directory in bash.

Syntax

pwd [-LP]

where:

  • -P will print the pathname with no symbolic links or the -o physical option to the set builtin command is enabled.
  • -L will print the pathname that may contain symbolic links.

The return status is 0 unless an error occurs while reading the name of the current directory or an invalid option is supplied.

Logical [default] and Physical working directories

To print the Logical [default] and Physical working directories, use pwd -L and pwd -P

$ pwd -L
/tmp/bar/baz
$ pwd -P
/tmp/foo





Discover More
Bash Liste Des Attaques Ovh
Bash - Builtin Commands

builtin refers to: a builtin command. See or to the specific builtin command. See (useful when defining a function whose name is the same as a shell builtin) The builtin command execute the specified...
Bash Liste Des Attaques Ovh
Bash - Cd (Change Directory) builtin command

in bash. Cd is a builtin command that changes the current directory where: the options -L forces symbolic links to be followed. -P says to use the physical directory structure instead of...
Bash Liste Des Attaques Ovh
Bash - (Current|Working) Directory

This article is the management of the current directory in Bash. You can query the current working directory via: the pwd utility or via the PWD environment variable shell variable concerning...
Bash Liste Des Attaques Ovh
Linux Utility - Scp (secure copy, remote file copy) command

in Linux. Example to copy recursively the local directory to a remote with sshpass to pass the password where: -p Preserves modification times, access times, and modes from the original...
Bash Liste Des Attaques Ovh
What is a Command in Bash?

This page is command in bash. Command are in bash the expression unit A command (or an expression) is a sequence of words separated by blanks, terminated by a control operator. Each command execution...
Undraw File Manager Re Ms29
What is the working or current directory ?

The current or working directory is the directory where all relative directories are calculated



Share this page:
Follow us:
Task Runner