Skip to main content
IBM 
ShopSupportDownloads
IBM HomeProductsConsultingIndustriesNewsAbout IBM
IBM : developerWorks : Linux : Education - Tutorials
LPI certification 101 exam prep, Part 1
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
2. Introducing bash
  


Relative paths page 7 of 13


The other kind of path is called a relative path. Bash, cd, and other commands always interpret these paths relative to the current directory. Relative paths never begin with a /. So, if we're in /usr:


$ cd /usr

Then, we can use a relative path to change to the /usr/local/bin directory:


$ cd local/bin
$ pwd
/usr/local/bin

Main menuSection menuFeedbackPreviousNext
PrivacyLegalContact