The ls -l command displays file details including permissions, owner, size, date, and name. File permissions are shown as three sets of rwx characters for owner, group, and other indicating read, write, and execute access. The number of hard links refers to the number of file names associated with the inode.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
17 views2 pages
LS-L Fields
The ls -l command displays file details including permissions, owner, size, date, and name. File permissions are shown as three sets of rwx characters for owner, group, and other indicating read, write, and execute access. The number of hard links refers to the number of file names associated with the inode.
first character is most often -, l or d. A d indicates a directory, a - represents a regular file, l is a symlink (or soft link) and other letters are used for other types of special files three sets of characters, three times, indicating permissions for owner, group and other: o r = readable
o w = writable
o x = executable (for files) or accessible (for directories)
this may be followed by some other character of there are extended
permissions, like e.g. Linux ACL that are marked with a +.
In your example -rwxrw-r--, this means the line displayed is:
a regular file (displayed as -)
readable, writable and executable by owner (rwx)
readable, writable, but not executable by group (rw-)
readable but not writable or executable by other (r--)
The number of hard links means the number of names the inode has, i.e. links created with ln without the -s option.