Writings Photos Code Contact Resume
Don't shoot yourself by doing this.

You are here

Submitted by msameer on Sat, 18/06/2005 - 9:04am

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:~$

Comments

Submitted by Pronco on Sun, 19/06/2005 - 11:57pm

What kind of result do you expect when you are trying to destroy your os?

--------------------------------------------------
-I used to be indecisive ... but now I'm not so sure

Add new comment

Subscribe to /  digg  bookmark