-l option prints a specified directory's contents in a long listing format. If no directory is specified then, by default, the contents of the current directory are listed.
ls -l /etc
total 1204 drwxr-xr-x 3 root root 4096 Apr 21 03:44 acpi -rw-r--r-- 1 root root 3028 Apr 21 03:38 adduser.conf drwxr-xr-x 2 root root 4096 Jun 11 20:42 alternatives ...
The output first displays
total, which indicates the total size in blocks of all the files in the listed directory. It then displays eight columns of information for each file in the listed directory. Below are the details for each column in the output:
|1.1||File type (see table below)|
|2||Number of hard links|
|5||File size in bytes|
The file type can be one of any of the following characters.
|Block special file|
|Character special file|
|High performance ("contiguous data") file|
|Door (special IPC file in Solaris 2.5+ only)|
|Off-line ("migrated") file (Cray DMF)|
|Network special file (HP-UX)|
|FIFO (named pipe)|
|Port (special system file in Solaris 10+ only)|
|Some other file type|