Linuxtopia - Red Hat Linux 9 Getting Started Guide -
Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ ">

13.3. 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, the Bash prompt in Red Hat Linux shows just your current directory, not the entire path.

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

To determine the exact location of the current directory at a shell prompt and type the command pwd.

You will see something such as:

/home/sam

This example shows 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 full path of the current directory in the shell prompt window. When the system responds to requests for information, the response is called standard output, and can be printed to the shell prompt or can be redirected to other programs or to other output devices such as printers.

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

 
 
  Published under the terms of the GNU General Public License Design by Interspire