Thanks to http://www.unix.com/unix-dummies-questions-answers/41832-ls-l-column-headings.html, I have managed to find out what is the meaning of all the column header in ls -l command. Below are the details:
# ls -l
total 52
drwxrwxrwx 2 root root 41 Jan 14 2013 archive
drwxr-xr-x 2 root root 3072 Aug 3 2013 bin
-rw-r--r-- 1 root root 578 Jan 14 2013 README-archive.txt
lrwxrwxrwx 1 root root 3 Feb 17 2013 run -> tmp
1st column is file type(d for DIR, - for Files, l for links) and access details for UGO (User Group Others aka file permission).
2nd column is Number of links (2,1), the number of names there are for the file. Generally an ordinary file will only have one link, but a directory will have more, because you can refer to it as ``dirname'', ``dirname/.'' where the dot means ``current directory'', and if it has a subdirectory named ``subdir'', ``dirname/subdir/..'' (the ``..'' means ``parent directory'').
3rd Column is File/directory owner (root)
4th Column is File/directory group (root)
5th Column is Size of the file and Dir (41, 3072)
6th Column is Date the file / DIR created. ( Jan 14 2013)
7th Column is File Directory name (archive, bin)
No comments:
Post a Comment