Search code examples
linuxbashubuntuls

What are the column heading for this "-rwxr-xr-x 1 root root 920788 Mar 28 2013 bash" when I do "ls -l" in the Ubuntu terminal


I executed the command "ls -l" in the ubuntu terminal, I understand the "ls -l" is the long listing in ubuntu, but I don't understand the columns for example: (This was the first line)

-rwxr-xr-x  1   root    root    920788  Mar 28 2013 bash

How would I find out the column headings for the above?


Solution

  • The columns are :

    • Permissions (owner, group. all)
    • Links
    • Owner
    • Group
    • Size in bytes
    • Time of last modification
    • Name

    So "-rwxr-xr-x 1 root root 920788 Mar 28 2013 bash" means:

    • user root has permissions rwx (read, write, execute).
    • group root has permissions r-x (read and execute).
    • Everybody has permissions r-x (read and execute).
    • The file has only 1 hard link.
    • The owner is root.
    • The group is root.
    • Size is 920788 bytes.
    • Last modified in March 28, 2013.
    • The file name is bash.