You are not logged in.

#1 2005-05-06 19:31:25

SleepyDog
Member
Registered: 2004-10-15
Posts: 114

Smooth Move.

david@linux:: rm z600cups-1.0-1.gz                                          [~]
david@linux:: ls                                                            [~]
testpage  z600cups-1.0-1.i386.tar.gz  z600llpddk-2.0-1.i386.tar.gz
david@linux:: tar -xvzf z600cups-1.0-1.i386.tar.gz                          [~]
./
./usr/
./usr/share/
./usr/share/cups/
./usr/share/cups/model/
./usr/share/cups/model/Lexmark-Z600-lxz600cj-cups.ppd.gz
./usr/lib/
./usr/lib/cups/
./usr/lib/cups/filter/
./usr/lib/cups/filter/rastertoz600
./usr/lib/cups/backend/
./usr/lib/cups/backend/z600
david@linux:: rm -r /usr                                                    [~]
rm: descend into write-protected directory `/usr'? 
david@linux:: rm -rf /usr                                                   [~]
rm: cannot remove `/usr': Permission denied
david@linux:: sudo rm -rf /usr                                              [~]
Password:
david@linux:: ls                                                            [~]
testpage  usr  z600cups-1.0-1.i386.tar.gz  z600llpddk-2.0-1.i386.tar.gz
david@linux:: sudo rm -rf /usr                                              [~]
zsh: command not found: sudo
david@linux:: sudo                                                          [~]
zsh: command not found: sudo
david@linux:: rm                                                            [~]
rm: too few arguments
Try `rm --help' for more information.
david@linux:: rm -rf f/usr                                                  [~]
david@linux:: ls                                                            [~]
testpage  usr  z600cups-1.0-1.i386.tar.gz  z600llpddk-2.0-1.i386.tar.gz
david@linux:: ls /usr                                                       [~]
ls: /usr: No such file or directory
david@linux:: ls                                                            [~]
testpage  usr  z600cups-1.0-1.i386.tar.gz  z600llpddk-2.0-1.i386.tar.gz
david@linux:: ls /                                                          [~]
bin   dev  home  mnt  proc  sbin   sys  udev
boot  etc  lib   opt  root  share  tmp  var
david@linux:: ...                                                           [~]

Doh!

Sad part is I punched in /usr instead of usr multiple times roll

Offline

#2 2005-05-06 19:55:48

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Smooth Move.

lol  :mrgreen:
That is great. I have done things like that too.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2005-05-06 20:41:20

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Smooth Move.

Oh man!...hope you had a backup.:lol:
I haven't removed any major directories like that yet, but I'm sure its only a matter of time...

Offline

#4 2005-05-06 20:46:31

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Smooth Move.

:-) in a way, you are lucky not deleting /etc :-)

you know the difference between theory and practice? here an example:

in theory:
-----------
pacman -Q will make you the list of pkgs you should have and pacman -S will install these

in practice:
-------------
you will not be able to do what i suggested, because pacman was under /usr


The impossible missions are the only ones which succeed.

Offline

#5 2005-05-06 20:51:10

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Smooth Move.

couldn't you backup /var/lib/pacman/local, create the /usr/bin directory, reinstall pacman(manually), rename the backup to local again, then do pacman -Q?

Offline

#6 2005-05-06 20:56:36

swiergot
Member
From: Kraków, Poland
Registered: 2005-01-08
Posts: 145

Re: Smooth Move.

big_smile When I was begining my adventure with Arch and making my first packages, I put "rm -rf /usr/lib" instead of "rm -rf $startdir/pkg/usr/lib" in the build function of one of PKGBUILDs. It took me about one hour before I noticed /usr/lib had gone to the hell, and another hour before I figured out why.
Oh, did you know that you can do safely "rm -rf /"? I tried it once when I needed to reinstall my old Slackware and it didn't do anything. But then, "rm -rf /*" did  big_smile

Offline

#7 2005-05-06 20:59:29

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Smooth Move.

just copy pacman.static from another box.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#8 2005-05-06 22:26:23

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Smooth Move.

cactus wrote:

just copy pacman.static from another box.

what is pacman.static?

Offline

#9 2005-05-06 22:34:30

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: Smooth Move.

dp wrote:

in a way, you are lucky not deleting /etc

:oops:

A word of advice to all linux users.. never create an "etc" dir in your home directory. You're just asking to shoot yourself in the foot. SleepyDog, I feel your pain..


I am a gated community.

Offline

#10 2005-05-07 00:38:08

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Smooth Move.

Penguin wrote:
cactus wrote:

just copy pacman.static from another box.

what is pacman.static?

It's just pacman with the libraries statically compiled in.

Offline

#11 2005-05-07 00:41:16

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

Re: Smooth Move.

Time to backup and reinstall. lol I think we've all been there.


·¬»· i am shadowhand, powered by webfaction

Offline

Board footer

Powered by FluxBB