ls -al output column fields

Can someone guide me what does each column of ls -ali output in linux describe?

Upvotes: 4

Views: 16970

Answers (2)

Vito Gentile
Vito Gentile

Reputation: 14386

ls -ali combines the options -a, -l and -i.

From the official documentation:

-l

In addition to the name of each file, print the file type, file mode bits, number of hard links, owner name, group name, size, and timestamp

In addition to the aforementioned fields, -i adds the index number of each file.

Finally, option -a includes all the file with names starting with ., which otherwise would be considered hidden and thus ignored .

Upvotes: 0

Tony Damon
Tony Damon

Reputation: 76

ls -ali

something like this

 67403780 -rw-------.  1 root root   1114 12月  6 2016 anaconda-ks.cfg

-a, --all do not ignore entries starting with .

-i, --inode print the index number of each file

inode, authority, num ,user,group, size , date file name

you can use "man ls" see more infomations

Upvotes: 4

Related Questions