Favorite Unix Commands

Unix is powerful. One wrong move in the terminal can disrupt an entire system. Here are a few of my favorite simple, beautiful, and chaotic commands (in no particular order):

user@ubuntu:~$ rm -rf /

Deletes entire computer


user@ubuntu:~$ :(){:|:&};

Creates a "Fork Bomb", which is a process that continuously replicates itself to no end; effectively depleting all of a system's OS resources and rendering it useless


user@ubuntu:~$ chmod -R 777 /

Gives everyone and everything read/write/execute permission for everything on the machine


user@ubuntu:~$ mv ~ /dev/null

Put your entire home directory in the "null" folder, essentially deleting it all


user@ubuntu:~$ mv /dev/null /etc/passwd

Deletes the system's password file, essentially locking everyone out of the system




Created: ~05/14/2020
Last Updated: ~05/14/2020