Command Line Basics: Navigating the File System

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.

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

2 thoughts on “Command Line Basics: Navigating the File System

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.