Listing files

Linux Command Line Quick Reference

1 min read

Published Aug 18 2026


19
0
0
0

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 /path

Common options:

  • -l uses the long format, including permissions, owner, group, size and modification time.
  • -a includes hidden entries whose names begin with ..
  • -h makes sizes human-readable when used with -l.
  • -t sorts by modification time, newest first.
  • -S sorts by file size, largest first.
  • -r reverses the selected sort order.
  • -R recursively lists subdirectories.

pwd prints the absolute path of your current working directory. tree, if installed, displays a directory hierarchy visually.

© 2025 SimpleSteps.guide
AboutFAQPoliciesContact
Linux Command Line Quick Reference | Listing files | SimpleSteps.guide