Ubuntu Command to Display Full Path of Current Directory
Navigating the Linux file system often requires knowing your exact location within the directory structure. This article explains the specific command used in Ubuntu to reveal the full path of your current working directory. You will learn how to use this tool effectively in the terminal to manage files and scripts with confidence.
The command you need is pwd. This stands for
Print Working Directory. When you run this command in
the Ubuntu terminal, it prints the absolute pathname of the current
directory to the screen.
To use it, open your terminal and type:
pwd
Press Enter to execute the command. The terminal
will immediately display the full path, such as
/home/user/documents. This works regardless of how deep you
are within nested folders. There are no required options or flags for
basic functionality, making it a quick and reliable tool for verifying
your location in the file system.