Linux - ls (List directory content)


Linux Command to list the contents of a directory

ll is an alias of “ls -la”

Check also the find command


ls [option] [file}


ls -alt


long format (l)

The -l option lists files and directories as a table with the following structure:

  • the number of child's (directory and file)
  • the owner name
  • the group owner name
  • the size of the file in bytes
  • the date and time of the last modification
  • the name of the file or directory

order (t)

The -t option orders files and directories by the time they were last modified.

hidden files and directory (a)

Only file name

ls -A1

Powered by ComboStrap