Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Rep:
The rights
The following is the structure of the directories.
/home/ka/user2/letters/important
I am interested in learning the rights of the directory ' letters' . I only want to know, for example, the read, write and executable rights of that folder. I just want to do in one single command.
What David is trying to say is.. this is easy.. ls is a command and grep is its own command.. from what you provided and asked, I'm sure you can distinct which one truly and only uses one command to perform the same task..
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
Thanks trickykid and David.
I know that ' ls ' and ' grep ' are two diffferent commands.
1] ls -l letters --_> This command shows the rights of the documents in the 'letters' folder.
2] ls -l | grep letters --> This command direct the output of the ' ls -l ' in to the 'grep' command. I am not sure what is happening to that particular output.
There are documents inside the ' letters' folder. I just want to know which command shows the rights of those documents.
I am in the ' user2 ' folder.
By the way, I am not an expert on these things. I am learning here.
the ./ means your current directory.. didnt you want to list the contents of letters? i specified how to do that above.
what distro have you been using after 200+ posts here?
research the 'ls' command (here) or look up file permissions in google.
i have no clue what your asking.. whats s4?
are you looking for the man page for copy/cp? just type 'man cp' then.. u cant pass options (ie --s4 whatever that is) to the man page program
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.