Web page hosting, cheap domain name & website promotion services
  

 Home

Red Hat Linux 7.2: The Official Red Hat Linux Getting Started Guide
PrevChapter 10. 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. Bash, the shell for your Linux system shows, by default, just your current directory, not the entire path.

Figure 10-2. The Command pwd Shows You Where You Are

To determine the exact location of your current directory within the filesystem, go to a shell prommt and type the following command:

pwd

You should see something like:

/home/newuser

This is telling you that you are in the /newuser directory, which is in your /home directory.

The command pwd stands for print working directory. When you typed pwd, you were asking your Linux system, "Where am I?" Your system responded by printing the directory you are in on the monitor, also known as the standard output.

You will be using pwd often as you look around. Even Linux experts depend on this command.


PrevHomeNext
Use Man Pages for InformationUpChanging Directories with cd
 

 

 

 

Website promotion and ranking services | Active-Domain.com: Domain name registration | Cheap domain registrar 

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

 

 
Quotes: If men cease to believe that they will one day become gods then they will surely become worms.