I want to learn about the meaning of values for example first line;

drwxr-xr-x 2 ataka root 4096 2008-11-04 16:58 ataka

is ataka here the owner of directory ?

kioutsovkm@orkide:/users/lnxsrv2/ee$ ls
ataka  aydinoglu  izgordu  kioutsovkm  kocaogluo
kioutsovkm@orkide:/users/lnxsrv2/ee$ ls -l
total 20
drwxr-xr-x 2 ataka     root 4096 2008-11-04 16:58 ataka
drwxr-xr-x 2 aydinoglu root 4096 2008-11-04 16:58 aydinoglu
drwxr-xr-x 3 izgordu   root 4096 2009-09-29 11:59 izgordu
drwxr-xr-x 2 root      root 4096 2008-11-04 16:58 kioutsovkm
drwxr-xr-x 4 kocaogluo root 4096 2010-06-10 03:41 kocaogluo
kioutsovkm@orkide:/users/lnxsrv2/ee$
link|improve this question
not programming related, should be on serverfault – Tim Büthe Aug 4 '10 at 11:59
it was already migrated—here instead of serverfault – Nerdling Aug 4 '10 at 12:05
feedback

migrated from stackoverflow.com Aug 4 '10 at 12:00

This question came from our site for professional and enthusiast programmers.

5 Answers

Is ataka here the owner of directory?

Well, yes (third column), but it also happens to be the name of the directory (last column).

  +-permissions that apply to the owner
  |
  |     +-permissions that apply to all other users
  |     |
  |     |  +-number of hard links
  |     |  |
  |     |  |             +-size      +-last modification date and time
 _|_   _|_ |            _|__ ________|_______
drwxr-xr-x 2 ataka root 4096 2008-11-04 16:58 ataka
    ___      _____ ____                       _____
     |         |    |                           |
     |         |    |                           +-name of file or directory
     |         |    |
     |         |    +-the group that the group permissions applies to
     |         |
     |         +-owner
     |
     +-permissions that apply to users who are members of the group

See man ls, man chmod and info ls or info coreutils 'ls invocation' for more information.

link|improve this answer
1  
+1 - More comprehensive answer, but with a polite nod to the man pages afterwards. Good example of a constructive answer – Rob Cowell Aug 4 '10 at 15:28
feedback

If you really want to learn, there's always man ls.

link|improve this answer
3  
the ultimate rtfm answer – whitequark Aug 4 '10 at 14:46
...which is precisely the mentality that StackOverflow/SuperUser, et. al. are meant to overcome. – yalestar Oct 21 '11 at 3:35
feedback

Yes. ataka is an username and root is a group.

link|improve this answer
feedback
ataka         root 
^             ^
owner (user)  owner (group)
link|improve this answer
not owners group. group owning file or dierectory – mugen kenichi Aug 4 '10 at 12:07
-1: 'root' in this case is the group associated with the directory, which may or may not be the group of the directory's owner. This isn't to do with the group 'owning' the file -- instead, it indicates the group which the group permission bits refer to. See also chgrp(1) – Norman Gray Aug 4 '10 at 12:55
ok this is right but it is basically the same with the owner. it is just a matter of how you phrase it. the uid shows wich user the file blongs to, the gid wich group a file belongs to. – mugen kenichi Aug 4 '10 at 13:53
@Norman Gray: I edited my answer, please remove the downote – abatishchev Aug 5 '10 at 10:37
feedback

Yes, he is. The first column is the owner of the file/directory and the second column indicates the group that the owner is in.

link|improve this answer
-1: as above: the group is nothing to do with the owner -- it indicates the group which the group permission bits refer to – Norman Gray Aug 4 '10 at 12:56
feedback

Your Answer

 
or
required, but never shown