Weird sense of humour (*NIX)

I was just looking at my fortune for the day (this is using the fortune-mod command line app for MacOS and *nix) and todays one was

nohup rm -fr /&

Being mightily suspicious of terminal commands at the best of times, I read the man pages and it turns out that this command will try and erase everything within the folder you execute it from without stopping for any errors or permissions! Wonder if anyone has run it without thinking? :confused:

#271027

Of course SOMEONE did it without thinking... they probably got pissed after they realized what they did though ;)

#271062

nohup rm -fr /&

...this command will try and erase everything within the folder you execute it from...

Actually, you give that command a run and it'll try to wipe out all files, not just the ones in the current folder. ;)

#271078

how do you know? did you try it? :)

#271082

how do you know? did you try it? :)

No, I just know what the command does.

rm -fr / means "remove, silently, all files from the / directory and all subdirectories off it"

& at the end means "run this command in the background", which makes it even more unnoticeable.

nohup at the beginning runs the following command (rm -fr /) ignoring hangups..

basically, it's an attempt at a "stealth" harddrive wipe. Hopefully won't work too well if you're not logged in as root.

#271097

**** >_< that is some ****ing nice fortune you got there, Ludge :confused:

The only guy who copies and pastes funky unix commands is Timan... he once ran " rm -r / " cause Contra mentioned it to him HAHAHAHHA

#271107

Will it really try from /? I thought it'd just go down the folder structure from wherever you execute it.

That is one seriously nasty command.

This'd be a good trick for command line ****s though...

#271111

Will it really try from /? I thought it'd just go down the folder structure from wherever you execute it.

Yup, it'll start from /. That's why there's a / right before the & in the command line. ;)

As a less-destructive example, try

ls -Ral /&

and go get supper or something, 'cause it's going to list every darn thing in your HDD. :D

#271128

hahahah /me wubs UNIX

#271130

i'm gonna recomend all people who say windows rocks to download cygwin and try it as an administrator. (of course i won't. my job is to help people fix their computers for a small fee, not destroy them for free...)

#271149

i'm gonna recomend all people who say windows rocks to download cygwin and try it as an administrator.

So... because someone says Windows rocks, you'll recommend they download a unix environment, log in as an admin, and delete their system? Doesn't it kill the point that they have to download a unix environment first?

Seems to me it's like saying "Everyone who says bicycles rock, I recommend you install custom tires then purposefully let all the air out of them. THEN we'll see what really rocks."

#271156

yeah i was kidding. oh and the reason to dl cygwin is so they have absolutely no clue what it does. i'm working with ****s as a business i'm planning. that's why my sig has no picture and my av is gone. i locked up the site because its not done yet. if anyone wants to help me design my new site will be credited, btw.

#271162

I was just looking at my fortune for the day (this is using the fortune-mod command line app for MacOS and *nix) and todays one was
nohup rm -fr /&

thats almost a self-fulfilling prophecy

#271164

yeah i was kidding. oh and the reason to dl cygwin is so they have absolutely no clue what it does. i'm working with ****s as a business i'm planning. that's why my sig has no picture and my av is gone. i locked up the site because its not done yet. if anyone wants to help me design my new site will be credited, btw.

... That doesnt make much sense... Separate your lines of thought boy...

#271167

that's why you use an OS that doesen't have anything but a command line emulator. Like Windows XP for instance. I use Ubuntu Linux a lot before that Windows fanboy thing pops out around here. I'll steer clear of most of the commands you all give me though from now on I think after reading this. And yes, someone's sense of humor sucks.

#271176