Long listing, hidden files, human sizes: the serious ls
Cheat sheet · 9 commands
Navigation
Three commands do almost all of it: pwd tells you where you are, ls shows what is here, cd moves you. The rest of this sheet is the handful of flags and shortcuts that turn those three into reflexes.
The 3 you will use every day
Return to the previous directory
Sort by time, newest at the bottom (right above your prompt)
The full sheet
- Print the full path of the current directoryguide ›
- List directory contentsguide ›
- Long listing, hidden files, human sizes: the serious lsguide ›
- Sort by time, newest at the bottom (right above your prompt)guide ›
- Enter a directoryguide ›
- Go up one levelguide ›
- Jump to your home directoryguide ›
- Return to the previous directoryguide ›
- Visual tree, two levels deep (install: apt install tree)
Practise these for real in the interactive course,
or keep every sheet, chapter and fix in one book: The Linux Command Line Handbook.