Next / Previous / Index / TCC Help System / Publications / Site map / NM Tech homepage

Changing your current working directory

Tech Computer Center logo

At any given time, you are located in some current working directory within the Unix file tree. When you log in, your current directory is set to your home directory.

You can change your current working directory any time by using the cd command (this stands for "change directory"). For example, if the current directory has a subdirectory named details, you can change to that directory using the command:

    % cd details

You can always find out the absolute pathname of the current working directory by typing the command:

    % pwd

Assuming you are using csh as your shell, you can always return to your home directory by typing:

    % cd ~

Next: Moving a file to a different directory
See also: How to organize large collections of files
Previous: What is a pathname?
Site map
Index: Keyword index to help pages
Help: New Mexico Tech Computer Center: Help System
TCC Publications
Home: About New Mexico Tech

John Shipman, john@nmt.edu

Last updated: 1995/12/04 19:39:34 UT
URL: http://www.nmt.edu/tcc/help/unix/cd.html