tags:

views:

600

answers:

2

The command-line can be powerful but it can also be risky, which is why it is never recommended to login as root for your day-to-day work. Sometimes the command line can catch you out if you're not careful. So for example rm -rf . /dir instead of rm -rf ./dir can have a completely different result to what you intended.

Here is a great command line joke I came across recently. Command-line Russian roulette:

`[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "Click"

Edit: Running any bash script you see is dangerous, the above script is worse than normal and can trigger a delete of your root file system

_Edit: The above is an example of a command line joke. Its not meant to be actually run.

Let's hear other peoples stories or command-line jokes.

+1  A: 
format C:\
Click Upvote
A: 

looks fun to me. cd to your porn directory and see what it leaves. i suppose having a sense of humor is against forum rules here as well.

shiny666
p.s. destructive code? is that like the task scheduler in most iterations of windows "family" of products? or like when i screwed the permissions in /etc recursively. that was a nice one. maybe i should post that command and earn a flag for myself.
shiny666