?
Solved

ls command help

Posted on 2010-01-07
5
Medium Priority
?
317 Views
Last Modified: 2013-12-06
Hello,

I'm a begginer in Linux, just started learning this so my question may look a little basic...

If I run this command:

ls -l

and get something like this:

drwxrwxrw   13 root     root         4096 Apr 15 08:05 docs

does this means that everyone (every User, Group and Others) have read, write and execute permissions on the docs folder?

Thanks for your help,

jppinto
0
Comment
Question by:jppinto
  • 3
  • 2
5 Comments
 
LVL 10

Accepted Solution

by:
nabeelmoidu earned 2000 total points
ID: 26202546
yes
the first character is director/file
next three are read/write/execute for owner(root here)
next three are read/write/execute for group(root here)
next three are read/write/execute for other
0
 
LVL 33

Author Comment

by:jppinto
ID: 26202567
nabeelmoidu, thanks for your quick answer. I already knew that but my question is, root is considered an "user" that can be the owner of this folder? I hope that I'm making some sense with this question...

jppinto
0
 
LVL 10

Expert Comment

by:nabeelmoidu
ID: 26202581
yes, the user root is the owner of the folder.

the first set is not "every user", its the owner of the folder
0
 
LVL 33

Author Comment

by:jppinto
ID: 26202622
but root is a user and a group (in this case), right?
0
 
LVL 10

Expert Comment

by:nabeelmoidu
ID: 26202663
yes
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fine Tune your automatic Updates for Ubuntu / Debian
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month8 days, 11 hours left to enroll

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question