Change to Your Home Directory


cd ~

You should know about a few nice shortcuts for cd. No matter where you are, just enter a simple cd, and you'll immediately be whisked back to your home directory. This is a fantastic timesaver, one that you'll use all the time. Or, if you'd like, you can use cd ~ because the ~ is like a shortcut meaning "my home directory."

$ pwd /home/scott/music $ cd ~ $ pwd /home/scott 




Linux Phrasebook
Linux Phrasebook
ISBN: 0672328380
EAN: 2147483647
Year: 2007
Pages: 288

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net