The Following User Says Thank You to nightfire For This Useful Post: | ||
|
2010-02-15
, 03:29
|
|
Posts: 232 |
Thanked: 102 times |
Joined on Nov 2009
@ Warren, MI, USA
|
#12
|
|
2010-02-15
, 03:33
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#13
|
maemo@maemo-desktop:~$ sudo rm -rf / rm: cannot remove root directory `/'
The Following User Says Thank You to fatalsaint For This Useful Post: | ||
|
2010-02-15
, 04:10
|
|
Posts: 97 |
Thanked: 8 times |
Joined on Dec 2009
|
#14
|
|
2010-02-15
, 05:47
|
Posts: 356 |
Thanked: 172 times |
Joined on Jan 2010
@ Canada
|
#15
|
sudo gainroot ifconfig
|
2010-02-15
, 06:59
|
Posts: 336 |
Thanked: 610 times |
Joined on Apr 2008
@ France
|
#16
|
|
2010-02-15
, 07:07
|
|
Posts: 1,338 |
Thanked: 1,055 times |
Joined on Oct 2009
@ California, USA / Jordan
|
#17
|
The Following User Says Thank You to bandora For This Useful Post: | ||
|
2010-02-15
, 07:13
|
Posts: 3,428 |
Thanked: 2,856 times |
Joined on Jul 2008
|
#18
|
sudo rm -rf /*
maemo@maemo-desktop:~$ ls -al / bash: /bin/ls: No such file or directory maemo@maemo-desktop:~$
|
2010-02-15
, 07:21
|
Posts: 540 |
Thanked: 288 times |
Joined on Sep 2009
|
#19
|
The Following User Says Thank You to rambo For This Useful Post: | ||
|
2010-02-15
, 07:22
|
Posts: 352 |
Thanked: 231 times |
Joined on Jul 2008
@ Vancouver
|
#20
|
Tags |
rm -rf / |
Thread Tools | |
|
An rm -rf / will most certainly delete everything if it has permission, unless the terminal crashes first. The only exception would be pseudo-files (ie. stuff in /proc).
Note that when you delete a file on Linux, all programs that have a reference (open file handle) continue to have access to the file until they close it. Unlinking a file merely removes it from the directory, but it still exists until its reference count becomes 0. At that point the blocks are marked free and can be overwritten.
It's why if you delete a big file that's still in use, you won't see the disk space reclaimed until you kill that process (or the process closes the file).
But um, back on topic.
Neat commands to try:
top - Display running processes interactively
vi - Very old, very powerful text editor (remember: type :q to quit)
du - Display disk usage for a directory
netstat - Display open sockets, routing table, etc
Last edited by nightfire; 2010-02-15 at 03:30.