Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
totoxto2517y@noogli writing rm -rf * deletes everything in folder recursively.
~ would refer to the users home folder on the system. -
totoxto2517y@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.
-
noogli6557yTouch 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? -
totoxto2517y@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. -
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
How to be evil: Execute `touch -- '-rf *'` in their home directory.
They'll probably will run `rm` on it before realising their mistake.
rant