Linux - ls (List directory content)
Table of Contents
About
Linux Command to list the contents of a directory
ll is an alias of “ls -la”
Check also the find command
Articles Related
Syntax
ls [option] [file}
Example
ls -alt
Options
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)
include hidden files and directories
Only file name
ls -A1