When managing your directories in a Linux system you can use the pwd command to identify what your shell’s current directory is. This handy command is one of the basic and fundamental commands that any beginner user should master. In this article, we will cover the basic usage of the Linux pwd command.
Print working directory
By default, pwd works as if the -P option is enabled
pwd
Print working directory without displaying symlinks
pwd -P
This is one of the most used commands in addition to the Linux cd command. Using both commands is the essentials of navigating through a Linux system.