You are not logged in.
Pages: 1
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
Offline
: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
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
:-) 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
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
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
Offline
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
just copy pacman.static from another box.
what is pacman.static?
Offline
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
cactus wrote:just copy pacman.static from another box.
what is pacman.static?
It's just pacman with the libraries statically compiled in.
Offline
Time to backup and reinstall. I think we've all been there.
·¬»· i am shadowhand, powered by webfaction
Offline
Pages: 1