Linux pwd Command: Show Current Directory Path
To display the absolute path of the current working directory in the Linux terminal, you can follow these steps:
- Open the terminal: Open the terminal through the application menu or keyboard shortcuts.
- Enter the “pwd” command: In the terminal window, type in the following command and press Enter.
- Show current directory
- View absolute path: After executing the command above, the terminal will immediately display the absolute path of the current working directory, usually starting from the root directory /. For example:
- “Directory located at /home/user/Documents”
This method allows you to quickly obtain the absolute path of the current working directory, making it easier for you to manage files and perform other operations in the terminal.