Home > Articles > Operating Systems, Server > Linux/UNIX/Open Source

This chapter is from the book

This chapter is from the book

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
  • + Share This
  • 🔖 Save To Your Account