16

How to be evil: Execute `touch -- '-rf *'` in their home directory.

They'll probably will run `rm` on it before realising their mistake.

Comments
  • 1
    Or create a directory named ~
  • 0
    Pls explain for Linux noobs
  • 0
  • 1
    @noogli writing rm -rf * deletes everything in folder recursively.
    ~ would refer to the users home folder on the system.
  • 0
    @totoxto What does touch do? I've never used it.
  • 1
    @PrivateGER as it's used there it creates a file. So the joke is that you'll accidentally type in a command to delete everything in the folder when trying to delete the file.
  • 0
    @totoxto oh that's evil :D
  • 0
    Touch changes timestamps but also create a file if it isn't present
    I didn't get what -- is for ?
    And how u delete that file then?
  • 1
    @noogli used to signify that you're done with command options in bash.
    In practice the command he posted makes the file with quotes so it doesn't really work, to avoid -rf to be interpreted as options you can use -- again.
  • 0
  • 1
    I accidentally created a file that way and went to delete it. You can guess what happened. The best troll is the one you do on yourself
Add Comment