Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: Bloody Sam Roberts

Along the lines of asking first, “What is this thing?” before pulling a pin on a grenade: What does “rm -rf /” do? Is it a reformatting command?


79 posted on 08/28/2011 5:49:12 AM PDT by FourtySeven (47)
[ Post Reply | Private Reply | To 73 | View Replies ]


To: FourtySeven

rm -rf / is a recursive deletion starting at the root directory. Very damaging when run as a user, completely destructive if run as root user. Unix doesn’t ask “Are you sure?” Unix just does it. Unix is not for the uninitiated.


81 posted on 08/28/2011 5:54:22 AM PDT by central_va ( I won't be reconstructed and I do not give a damn.)
[ Post Reply | Private Reply | To 79 | View Replies ]

To: FourtySeven
Is it a reformatting command?

Nope, it's a ReMove command. The -r makes it recursive (so it goes up and down the hills).

fdisk is the reformatting command. And they are fairly serious about that. If you want file system afterward, you have to mkfs.

/johnny

84 posted on 08/28/2011 6:02:46 AM PDT by JRandomFreeper (Gone Galt)
[ Post Reply | Private Reply | To 79 | View Replies ]

To: FourtySeven
What does “rm -rf /” do? Is it a reformatting command?

In Unix/Linux/Mac land the "rm" is short for remove. The "-" denotes a switch and the letters that follow define the switch. In this case, "r" is for recursive. The "f" is for force. The last bit is "/" which denotes the root directory as the starting place. The "*" means ALL.

Ergo, rm -rf /* would be a command with switches that will force a removal of all files recursively from the root directory on down. Total destruction. Especially in Unix/Linux/Mac lands. In Winders, files are not deleted like this. They are marked for deletion and aren't actually, totally gone until the sectors used to store them are overwritten.

91 posted on 08/28/2011 10:40:43 AM PDT by Bloody Sam Roberts (Deploy. Dominate. Disappear.)
[ Post Reply | Private Reply | To 79 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson