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.
I accidentally deleted /usr directory and now i am not able to get that file and i don't have any backup of that directory, is it possible to recover or restore all my deleted files if not please give me the suggestion so that it never happens again.
It was not showing the partition in which it was stored.
What OS are you running?
Were you running as root, because you can only delete directory if you have permission.
Another thing you can try if you only deleted the usr directory from only that user account log in through cli or recovery and create new user.
Then you can as root copy all of your documents to the new user account.
I hope that helps.
Thank you EDDY1 for reply : Redhat Linux enterprise edition 4
RedHat linux version 4, yes i was accessing through root user and
i am not able to access terminal window and also there is no desktop icon everything from the desktop is removed nothing i can access ,
only through putty from remote machine i can access the linux.
Sorry but I have no idea about the machine it is at remote location on which i was working.
It is very long story how i messed up, I am a java developer and wrote a code to create directory to store files and to delete the directory if it is no longer in use but i messed up big time while testing i accidentally deleted the /usr directory.
Jun 28 is worst day of my life and i m trying to recover from havoc.
diteshshetty: If you've deleted the /usr directory and it's subdirectories, and you don't have a backup, there isn't much you can do save reinstalling. The /usr directory holds most of the executables, libraries and application data.
That doesn't mean that you have to start from scratch, however. You could backup the /etc directory (which holds system configuration files) and other important data (/home and so on), reinstall your operating system and put the old /etc directory back in.
For backup non-working system you must run your PC for example from any LiveCD. From there you can mount old partitions and make copy on DVD or other hard disk. There is also undelete for ext2 filesystems and "testdisk" application also can do it, you can try it after backuping old data if your /usr had important data.