Don't shoot yourself by doing this.

Body

Ever wondered what'll be the output of the command:

rm -rf /

when you run it as root ? But sure you can't do this as you'll destroy all of your data!
I've done it for you and here's the result, Actually this isn't the 1st time I do it but it's the 1st time on one of my PCs.

mohammed@uniball:~$ su -c "rm -rf /"
Password:
rm: cannot remove `//dev/pts/0': Operation not permitted
rm: cannot remove directory `//home': Device or resource busy
rm: cannot remove directory `//mnt/gnu': Device or resource busy
rm: cannot remove directory `//mnt/tmp': Device or resource busy
rm: cannot remove `//proc/asound/pcm': Operation not permitted
rm: cannot remove `//proc/asound/timers': Operation not permitted
rm: cannot remove `//proc/asound/modules': Operation not permitted
rm: cannot remove `//proc/asound/cards': Operation not permitted
rm: cannot remove `//proc/asound/devices': Operation not permitted
rm: cannot remove `//proc/asound/version': Operation not permitted
rm: cannot remove `//proc/asound/seq/oss': Operation not permitted
rm: cannot remove `//proc/asound/seq/drivers': Operation not permitted
rm: cannot remove `//proc/asound/seq/timer': Operation not permitted
rm: cannot remove `//proc/asound/seq/clients': Operation not permitted
rm: cannot remove `//proc/asound/seq/queues': Operation not permitted
rm: cannot remove `//proc/asound/oss/sndstat': Operation not permitted
rm: cannot remove `//proc/asound/oss/devices': Operation not permitted
rm: cannot remove `//proc/scsi/device_info': Operation not permitted
rm: cannot remove `//proc/scsi/scsi': Operation not permitted
rm: `//proc/ide/hdc' changed dev/ino: Operation not permitted
mohammed@uniball:~$
mohammed@uniball:~$ ls
-bash: /bin/ls: No such file or directory
mohammed@uniball:~$ df -h
-bash: df: command not found
mohammed@uniball:~$

Add new comment

The content of this field is kept private and will not be shown publicly.