On 13/06/11 11:21, Gordon Henderson wrote:
On Mon, 13 Jun 2011, Gibbs wrote:
On 13/06/11 11:07, Gordon Henderson wrote:
On Mon, 13 Jun 2011, Gibbs wrote:
On 13/06/11 10:48, Dan Dart wrote:
Maybe you typed rm -rf /usr /bin/sonething by accident.
See the space after usr.
Perhaps it was a semicolon outre a cracker.
I don't remember removing any directories whatsoever. It
would have had to be pretty specific to remove sbin, local
and share all in on command.
Very confused :)
Login as root and type
history
might give a clue?
Gordon
Ah, I always forget about history. The only thing I can see is
sudo mv * /usr/*
IIRC that was me being lazy moving some flash debugger plugin.
The fact that I obviously was doing something to /usr/ probably
means that it was me after all. I still don't know how that
would remove directories though...
Easy.
mv takes a list of files/dirs and moves them to the list item in
the list.
So..
mv * /usr/*
expands to
mv file1 file3 file3 (in current dir, etc.) /usr/bin /usr/games
/usr/include /usr/local ... ending up in my case with /usr/src
So you moved everything into /usr/src (or whatever the last
file/dir in your /usr was)
They're probably still there.
Gordon
Yep just spotted the
trailing wildcard...
Cheers Gordon
|