Domain hosting, cheap domain names & web page promotion services
  

 Home

Red Hat Linux 8.0: The Official Red Hat Linux Getting Started Guide
PrevChapter 11. Shell Prompt BasicsNext

Determining Your Current Directory with pwd

Once you start looking through directories, it is easy to get lost or forget the name of your current directory. By default, bash shows just your current directory, not the entire path.

To determine the exact location of your current directory within the file system, go to a shell prompt and type the command pwd.

You should see something like:

/home/sam

This tells you that you are in the user sam's directory, which is in the /home directory.

The command pwd stands for print working directory. When you typed pwd, you asked your Linux system to display your current location. Your system responded by printing the name of the current directory in the terminal window, also known as the standard output.

You will find that using pwd is very helpful as you learn to navigate your new Linux system.


PrevHomeNext
The History of the ShellUpChanging Directories with cd
 

 

 

 

Seosubmit.com: Web site promotion | Domain register and transfer | Buy cheap domain name 

Disclaimer: For authoritative source or latest update to this documentation, please refer to http://www.redhat.com/docs/manuals/linux/

 

 
Quotes: It is often better to have a great deal of harm happen to one than a little; a great deal may rouse you to remove what a little will only accustom you to endure.