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 menuFeedbackPrevious
Next Section
2. Introducing bash
  


Other users' home directories page 13 of 13


Bash will expand a lone ~ to point to your home directory, but you can also use it to point to other users' home directories. For example, if we wanted to refer to a file called fredsfile.txt in fred's home directory, we could type:


$ ./myprog ~fred/fredsfile.txt

Next Section
Main menuSection menuFeedbackPrevious
PrivacyLegalContact