pwd
The pwd
command in Linux is a simple yet essential tool used in the command line interface. It stands for "print working directory." When you execute this command in a terminal, it displays the full path of the current directory you are in. Here are some key points about the pwd
command:
Functionality: The primary function of
pwd
is to help you identify the current directory in the file system hierarchy. This is particularly useful when you navigate through multiple directories and want to confirm your current location.Absolute Path: The
pwd
command outputs the absolute path, which is the complete path from the root directory to the current directory. This is different from the relative path, which is defined in relation to where you currently are in the file system.Usage: Simply typing
pwd
in the terminal and pressing Enter will display the current directory's path.
Last updated