At the Unix command line, you are always "in" some directory in the file system. The directory you are in right now is called your current working directory (often shortened to either working directory or current directory ).
The current directory is the default directory for commands that read or create files. For example, if you give a command a filename to read, and you do not specify where to look for that file, the command will look for it in the current directory.
When you first open a Terminal window, your working directory is your home directory. Your home directory has the same name as your short user name . As you perform various tasks , you will frequently change your working directory. You can think of your working directory as being similar to the active Finder windowthat is, the currently active Finder window, the one "in front."
To display the current working directory:
localhost:~ vanilla$ pwd /Users/vanilla localhost:~ vanilla$
Compare with AquaThe Unix concept of the working directory is similar to the graphical user interface (GUI) concept of the active windowthe window that currently is the subject of actions like File > Close. Here's another way to compare the Unix working directory with Aqua. Think of what happens when you save or open a file from within an Aqua application. The dialog that appears starts you off in whatever folder the application most recently used. That folder is similar to the current working directory. |