The following options can be used:
Option "
-l" (long display):
The "
-l" provides more information about files and directories.
The first line of the output display the total number of blocks contained within the directory.
The following lines list details of each file and directory.
Each line provides the following information:
- The type of the file.
- Permissions of the file.
- The Number of file hard links.
- The user name of the owner of the file.
- The group name of the primary group of the file.
- The byte size of the file.
- The last time the file was modified.
- The file name.
-
The option "-l" shows the following characters for the type of the file:
-
The option "-l" shows the following characters for the permissions of the file:
For a specific command file, you might see the s character instead of the x character (-rwsrwsr--).
The s character can be set for the user permissions (setuid: set user id on execution) or/and group permissions (setgid: set group id on execution).
This allow a user to execute the command but the ownership of the running command will be hold by the user or group owning the command.
For some directories, you might see the t character instead of the x character in other's permissions (drwxrwxr-t).
This indicate that the sticky bit was enabled for them, which means that users can add or delete files in those directories
but they cannot delete each other's files.
For some files and directories, you might see the + character at the end of the permissions bits (-rwsrwsr--+).
This means that those files and directories have extra attributes assigned to them (i.e. ACLs).