LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 10-09-2011, 05:46 PM   #1
JJJCR
Member
 
Registered: Apr 2010
Posts: 540

Rep: Reputation: 25
Post 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.
 
Old 10-09-2011, 05:58 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,521
Blog Entries: 51

Rep: Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599Reputation: 2599
2 - links, 4096 - I/O block size. Also see 'stat xml' output.
 
Old 10-09-2011, 06:39 PM   #3
grail
Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 7,178

Rep: Reputation: 1779Reputation: 1779Reputation: 1779Reputation: 1779Reputation: 1779Reputation: 1779Reputation: 1779Reputation: 1779Reputation: 1779Reputation: 1779Reputation: 1779
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.
 
1 members found this post helpful.
Old 10-09-2011, 11:57 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Quote:
Originally Posted by JJJCR View Post
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
 
1 members found this post helpful.
Old 10-10-2011, 02:17 AM   #5
JJJCR
Member
 
Registered: Apr 2010
Posts: 540

Original Poster
Rep: Reputation: 25
Thumbs up

Quote:
Originally Posted by Tinkster View Post
Not quite ...

The perms come in triples
Code:
d                  directory
 rwx               owner
    r-x            group
       r-x         other

Cheers,
Tink
Thanks Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
interpretation of /proc/pid/sched output GoelMudit Linux - General 1 01-06-2011 10:54 PM
Valgrind interpretation ancou Programming 2 11-17-2010 05:15 PM
netstat interpretation twlilinux Linux - Server 6 06-17-2008 04:59 PM
c: output interpretation kpachopoulos Programming 3 08-17-2006 09:34 AM
tcpdump interpretation unixbrain Linux - Networking 7 04-28-2004 04:37 AM


All times are GMT -5. The time now is 02:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration