Listing files
Linux Command Line Quick Reference
1 min read
This section is 1 min read, full guide is 20 min read
Published Aug 18 2026
19
Show sections list
0
Log in to enable the "Like" button
0
Guide comments
0
Log in to enable the "Save" button
Respond to this guide
Guide Sections
Guide Comments
CLILinuxUbuntu
ls lists directory entries. With no path it lists the current directory.
List files and directories
bash
lsls -lls -lals -lhls -ltls -lSls -R /pathCommon options:
-luses the long format, including permissions, owner, group, size and modification time.-aincludes hidden entries whose names begin with..-hmakes sizes human-readable when used with-l.-tsorts by modification time, newest first.-Ssorts by file size, largest first.-rreverses the selected sort order.-Rrecursively lists subdirectories.
pwd prints the absolute path of your current working directory. tree, if installed, displays a directory hierarchy visually.