0% 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.

Uploaded by

chahoub
Copyright
© © All Rights Reserved
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% 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.

Uploaded by

chahoub
Copyright
© © All Rights Reserved
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
You are on page 1/ 2

Ls –l Fields

In the order of output;


-rwxrw-r-- 1 root root 2048 Jan 13 07:11 afile.exe
 file permissions (-rwxrw-r--),

 number of (hard) links (1),

 owner name (root),

 owner group (root),

 file size in bytes (2048),

 time of last modification (Jan 13 07:11), and

 file/directory name (afile.exe)

File permissions is displayed as following;


 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.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy