next up previous contents
Next: Other's Files Up: The File System Previous: Pathnames   Contents

Navigating the File System

Two commands are useful to navigate the file system tree. They are pwd (print (the name of) working directory) and cd (change directory). See the examples below.

[bbadger@demo01] (1)$ cd change directory to your home directory
[bbadger@demo01] (1)$ pwd print the name of the current directory
/afs/cs.wisc.edu/u/b/b/bbadger  
[bbadger@demo01] (1)$ cd cs367 oops, cs367 is not a subdirectory of
cs367: No such file or directory /afs/cs.wisc.edu/u/b/b/bbadger
[bbadger@demo01] (1)$ cd private/cs367 this is what we want
[bbadger@demo01] (1)$ ls list the current directory's files & directories
Prog1.java Prog1.class  
[bbadger@demo01] (1)$ cd .. `..' means ``the directory above the current one'' (the parent directory)
[bbadger@demo01] (1)$ pwd Now we're back in the private directory,
  /afs/cs.wisc.edu/u/b/b/bbadger/private


next up previous contents
Next: Other's Files Up: The File System Previous: Pathnames   Contents
Michelle Craft 2008-01-23