Command Line Basics: Navigating the File System

May 15, 2009 by
Filed under: bash, command line, linux 

Today's Command Line Basics focuses on Navigating the File System with the cd command.

cd stands for change directory. The cd command on its own will take you to your home directory (/home/userid/). If you have a directory in your home called Documents, then cd Documents will take you there. Following are the basic uses of cd.

cdchange to your home directory
cd /tmpchange to the /tmp directory
cd ~/Documentschange to /home/userid/Documents from anywhere
cd ..move up one directory in the structure
cd -change to the last directory you were in

Comments

2 Responses to “Command Line Basics: Navigating the File System”

  1. srhegde says:

    One of the things I regularly use is aliases. check out this
    http://srhegde.blogspot.com/2009/05/bash-aliases.html

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>