next up previous contents
Next: cp Up: Unix Commands Previous: ls   Contents

cd and pwd


The cd command stands for ``change directory.'' You use it to move between directories on a system. If the directory has a ``/'' in front of it, the directory change will occur ``absolutely'' without a ``/'' the directory change will occur relatively.


The pwd shows your ``present working directory.'' If youre not sure where you are on a system, use pwd.

Example:

[jdpoisso@legio data]$ cd /tmp 
[jdpoisso@legio tmp]$ pwd 
/tmp 
[jdpoisso@legio tmp]$ cd ~ 
[jdpoisso@legio ~]$ pwd 
/home/jdpoisso 
[jdpoisso@legio ~]$ cd data 
[jdpoisso@legio data]$ pwd 
/home/jdpoisso/data 
[jdpoisso@legio data]$



2010-08-27