The ls -l command provides a detailed listing of files and directories in the current directory. Here’s what each part of the output means:
-
File Type and Permissions: The first character indicates the file type (
-for regular files,dfor directories,lfor symbolic links, etc.), followed by the permissions for the owner, group, and others (e.g.,rwxr-xr--). -
Number of Links: The second column shows the number of hard links to the file or directory.
-
Owner: The third column displays the username of the file's owner.
-
Group: The fourth column shows the group name associated with the file.
-
File Size: The fifth column indicates the size of the file in bytes.
-
Modification Date and Time: The sixth column shows the last modification date and time of the file.
-
File Name: The final column displays the name of the file or directory.
For example, an output line might look like this:
-rw-r--r-- 1 user group 1234 Sep 9 12:34 example.txt
This indicates a regular file (-), with read and write permissions for the owner, read permissions for the group and others, owned by user, belonging to group, with a size of 1234 bytes, last modified on September 9 at 12:34, named example.txt.
