LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ls output interpretation (http://www.linuxquestions.org/questions/linux-newbie-8/ls-output-interpretation-907297/)

JJJCR 10-09-2011 05:46 PM

ls output interpretation
 
hi guys, need your help to understand the ls output command


drwxr-xr-x 2 root root 4096 oct 9 2011 xml

d - directory
rwxr - permission for the owner
xr - permission for the group
x - permission for others

2 = means what?

root = name of the user

4096 = means what? is this a process id or what?

thanks.

unSpawn 10-09-2011 05:58 PM

2 - links, 4096 - I/O block size. Also see 'stat xml' output.

grail 10-09-2011 06:39 PM

I am pretty sure that if you use your exact words in google, ie ls output interpretation, at least one of the 4+million replies must have this information.
I would add that some of the information you provided is actually incorrect.

Tinkster 10-09-2011 11:57 PM

Quote:

Originally Posted by JJJCR (Post 4494098)
rwxr - permission for the owner
xr - permission for the group
x - permission for others

Not quite ...

The perms come in triples
Code:

d                  directory
 rwx              owner
    r-x            group
      r-x        other


Cheers,
Tink

JJJCR 10-10-2011 02:17 AM

Quote:

Originally Posted by Tinkster (Post 4494265)
Not quite ...

The perms come in triples
Code:

d                  directory
 rwx              owner
    r-x            group
      r-x        other


Cheers,
Tink

Thanks Tink :)


All times are GMT -5. The time now is 03:35 AM.