LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 10-03-2009, 05:41 PM   #1
dlemas
LQ Newbie
 
Registered: Sep 2009
Posts: 18

Rep: Reputation: 0
deleted files /usr/bin/p* now what?


I just deleted the files /usr/bin/p* and I think I am screwed! I have the Ubuntu install however is there a chance that I can extract my working documents?

what to do?

thanks

Dominick
 
Old 10-03-2009, 05:47 PM   #2
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,330

Rep: Reputation: 227Reputation: 227Reputation: 227
live cd
 
Old 10-03-2009, 07:35 PM   #3
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by dlemas View Post
I just deleted the files /usr/bin/p* and I think I am screwed! I have the Ubuntu install however is there a chance that I can extract my working documents?

what to do?

thanks

Dominick
1. Back up your personal files.

2. Reinstall Ubuntu.

3. Restore your personal files.

4. Never, ever, ever, log on as root.
 
Old 10-03-2009, 07:36 PM   #4
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,330

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
Originally Posted by lutusp View Post
1. Back up your personal files.
4. Never, ever, ever, log on as root.
WTF!? i onece left my linux box logged in as root for 2 days
 
Old 10-03-2009, 08:04 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,289

Rep: Reputation: 126Reputation: 126
NEVER EVER login as root. Yes, you can get away with it for awhile, and perhaps if you're Mr. Joe Cool himself, you'll never have a problem. But, it's simply a disaster waiting to happen at the first fumble-fingered CLI command. Don't login as root. Don't use "su" unless you really, really, double-pinky swear that you need to. Use "sudo" for all your root activity, instead.

Or, you can search for how to restore files deleted by logging in as root and running "rm -rf /<somethingorother>".

Last edited by Quakeboy02; 10-03-2009 at 08:37 PM.
 
Old 10-03-2009, 08:23 PM   #6
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by smeezekitty View Post
WTF!? i onece left my linux box logged in as root for 2 days
Yes, and your point was? My post wasn't directed at you, it was directed at the person who said this:

Code:
I just deleted the files /usr/bin/p* and I think I am screwed!
Not everyone is the same, Some people are different. And some are very different.
 
Old 10-03-2009, 08:40 PM   #7
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,330

Rep: Reputation: 227Reputation: 227Reputation: 227
when i type a command i look before pressing enter
i still think you should recover your data with a live cd and reinstall your os
 
Old 10-03-2009, 08:45 PM   #8
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by smeezekitty View Post
when i type a command i look before pressing enter
i still think you should recover your data with a live cd and reinstall your os
Yes, and that was my precise, exact advice to him.
 
Old 10-03-2009, 08:50 PM   #9
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,330

Rep: Reputation: 227Reputation: 227Reputation: 227
that was what iwas trying to say in post #2 i was in a hurry
now i think we should terminate this irrelevant conversation
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM
Failed to chck remot comnd executin using shells /usr/bin/ssh and /usr/bin/rsh farnaw4u Linux - Software 2 04-06-2009 12:08 AM
making files available in /usr/local/bin and /usr/sbin reakinator Linux - Newbie 1 10-14-2006 05:09 PM
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 08:30 PM
Accidentally deleted /usr/bin/net larley Linux - General 2 07-26-2004 10:22 PM


All times are GMT -5. The time now is 03:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration