␡
- List Files and Folders
- List the Contents of Other Folders
- List Folder Contents Using Wildcards
- View a List of Files in Subfolders
- View a List of Contents in a Single Column
- View Contents As a Comma-Separated List
- View Hidden Files and Folders
- Visually Display a File's Type
- Display Contents in Color
- List Permissions, Ownership, and More
- Reverse the Order Contents Are Listed
- Sort Contents by Date and Time
- Sort Contents by Size
- Express File Sizes in Terms of K, M, and G
- Display the Path of Your Current Directory
- Change to a Different Directory
- Change to Your Home Directory
- Change to Your Previous Directory
- Conclusion
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