cd/pwd Examples

# Examples using filesystem commands:

cd / # go to the ROOT directory

cd /bin # do this, then do a "pwd" to see

pwd # ...our new location:

/bin # we are in "bin" just below root (/).

echo $HOME # HOME is defined as your home directory

/top/students/UNGRAD/Other/joeblow/home # this is where you go when you type "cd" with no value.

cd # Takes you home

pwd # See where we are?

/top/students/UNGRAD/Other/joeblow

cd bin # This will try and goto bin from the current directory your in.

pwd # Where are we now?

/top/students/UNGRAD/Other/joeblow/home/bin

cd .. # Takes you up one level

pwd # Where are we now?

/top/students/UNGRAD/Other/joeblow/home

Engineering Network Services home page link College of Engineering home page link