Deadly Commands in Linux
October13
1) The below command deletes everything recursively and forcefully.
1 | sudo rm -rf / |
2) Data on device mentioned after the mkfs command will be destroyed and replaced with a blank filesystem
1 2 3 | mkfs mkfs.ext3 mkfs.anything |
3) Forkbomb: Executes a huge number of processes until system freezes, forcing you to do a hard reset which may cause corruption, data damage, or other awful fates.
In Bourne-ish shells, like Bash: (This thing looks really intriguing and curiousity provokes)
1 | :(){:|:&};: |
In Perl
1 | fork while fork |
4) Using the below command, raw data will be written to a block device that can usually clobber the filesystem resulting in total loss of data.
1 | any_command > /dev/sda |
Recent Comments