CLI Navigating

From FreekiWiki
Revision as of 11:34, 29 March 2008 by Rwlove (talk | contribs) (→‎Quiz)
Jump to navigation Jump to search

Commands

cd  = change directory
ls  = list directory contents
pwd = print the working directory

Abbreviations

/  = the root directory
.. = the parent directory
~  = your home directory
-  = the last directory you were in (not used in paths)

Quiz

  1. How would you change to the root directory?
  2. How would you change to the Desktop directory within your home directory?
  3. How would you change back to your home directory?
  4. How would you confirm where you are?
  5. How would you list the contents of your parent directory?
  6. Show a relative path that starts in your home directory and specifies the /etc/init.d/ directory.