Welcome guest


pwd - Print Working Directory

It is always useful to know where you are. When you are navigating the file tree you will be moving from one directory to another and it can get confusing. When you start out, it is nice to have a picture of the file tree in front of you to make it easier to remember what it looks like. However, if you didn't have the tree handy, there is a command that can help. The command that will let you determine your current location on the file tree (your current path name) is pwd, which stands for "print working directory." Basically, it prints out the path name, from root ("/"), to your current location.

Example

If you wanted to find out the path name to your current working directory, how would you do it?

File Tree

Ask yourself:

Q: What am I doing? A: Displaying the pathname of my current working directory.
Q: How do I do that? A: Using the pwd command.
Q: What are the path names? A: That isn't applicable in this case. That is what I'm trying to find out.

pwd on a Terminal

The pwd is a very important command because it lets us see where we are located. If you are ever in doubt of where you are located on the file tree, use pwd.