Linux - NewbieThis 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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
To complete my piece of work I need to name a type of file that cannot be deleted by the rm command. I've searched google monotonously but I can't seem to find an answer for it. Any help would be great, thanks!
You can't remove files that have already been removed. For instance if you "rm /dev/zero" twice you can watch what happens the 2nd time. (Don't try this on hosts you aren't prepared to fix if they break.)
As far as I know rm can delete any type of file. But a wierd thought coming in my mind, if you're not logged in as root/super-user, then even using rm you cannot delete any write protected (i.e. file having no write permission) file for any user, whatever it's type is.
Not true. You can remove a file you don't have permissions for, as long as you have write permission for the directory its sitting in.
file permissions control access to the contents of the file. directory permissions control what you can do to the things that exist in the directory.
Thanks for correction David. OP can conclude that rm won't delete files/dir. which are inside a write protected directory. Or user cannot delete a file/dir. from a directory that has set sticky bit and user isn't it's owner or root.