The ls command
Last modified on July 24, 2026 • 1 min read • 108 wordsI have been using is for years, but hardly have used its “advanced” options.
ls -t to sort the content of the directory according to modification date. ls -d to display the directories and not their contents. ls -alh lists the complete content of the directory in long, human-readable form (that means file sizes are given in B, K, M or G and not in bytes).The -d option I mostly use as: ls -d .* This shows me all “hidden” directories which are located in the current directory. If I just typed ls .* I would get a recursive listing of all contents of all hidden directories.