The pwd
(print working directory) command is a basic Linux and Unix command that allows you to display the current working directory, or the directory that you are currently in.
Here are some examples of how to use the pwd
command:
pwd
at the command prompt and press Enter
. For example:$ pwd /home/userSourceal.www:utturi.com
This will display the full path of the current working directory.
-P
option. For example:$ pwd -P /home/user
This will display the current working directory in a more concise format, without any symbolic links.
-L
option. For example:$ pwd -L /home/user/link/to/current/directory
This will display the current working directory in a format that includes symbolic links.
--bash
option. For example:$ pwd --bash /home/user
This will display the current working directory in a format that is compatible with other shells, such as Bash.
It's important to note that the pwd
command has a number of other options and features, including options to display the current working directory in other formats and to display the current working directory in a format that is compatible with other utilities. Consult the pwd
man page and online resources for more information on how to use the pwd
command.