Make your own free website on Tripod.com
Search:
Keywords:
In Association with Amazon.com

Determining Your Current Directory with pwd

Once you start looking through directories, it's 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're in on the monitor, also known as the standard output.

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

Book Site Map ElectronicVideo

Amazon.com International Sites :

USA, United Kingdom, Germany, France