Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 8, 2007, 10:55 AM   #1
Mindcrime13
macrumors member
 
Join Date: Jun 2007
is this the right command?

well, im trying some stuff in my computer and wanted to make sure of something,

sudo rm -rf / is the command in terminal that would erase my whole computer leaving only the OS right? and is that how it should be written?

thanks

Last edited by Mindcrime13; Aug 8, 2007 at 11:09 AM.
Mindcrime13 is offline   0 Reply With Quote
Old Aug 8, 2007, 11:00 AM   #2
SilentPanda
Moderator emeritus
 
SilentPanda's Avatar
 
Join Date: Oct 2002
Location: The Bamboo Forest
I believe that's correct but why would you want to do that? And if so why not just format your hard drive instead?
__________________
My 24 hour web cam!
SilentPanda is online now   0 Reply With Quote
Old Aug 8, 2007, 11:05 AM   #3
xUKHCx
Administrator emeritus
 
xUKHCx's Avatar
 
Join Date: Jan 2006
Location: The Kop
That command will just hose your system. Don't run it.

sudo = basically giving it root privileges.
rm = remove
r= recursive
f = force
/ = root of the drive.

So it'll go through your harddrive deleting everything as well as anything attached to it.
xUKHCx is offline   0 Reply With Quote
Old Aug 8, 2007, 11:06 AM   #4
Mindcrime13
Thread Starter
macrumors member
 
Join Date: Jun 2007
cuz theres some info in my computer that i really dont want anyone to or try see or to get with a recovery tool
Mindcrime13 is offline   0 Reply With Quote
Old Aug 8, 2007, 11:07 AM   #5
Mindcrime13
Thread Starter
macrumors member
 
Join Date: Jun 2007
is there something similar like that but to apply it in a external hard drive?
Mindcrime13 is offline   0 Reply With Quote
Old Aug 8, 2007, 11:09 AM   #6
xUKHCx
Administrator emeritus
 
xUKHCx's Avatar
 
Join Date: Jan 2006
Location: The Kop
Just open up Disk Utility in Utilities. Select the external drive and select the erase option. In there you can choose some option going all the way up to 35 passes.

If you want to do this to the internal drive you'll have to boot from the install DVD and use disk utility there.
xUKHCx is offline   0 Reply With Quote
Old Aug 8, 2007, 11:15 AM   #7
Mindcrime13
Thread Starter
macrumors member
 
Join Date: Jun 2007
and with the disk utility, theres no way no one will recover anything?
Mindcrime13 is offline   0 Reply With Quote
Old Aug 8, 2007, 11:17 AM   #8
xUKHCx
Administrator emeritus
 
xUKHCx's Avatar
 
Join Date: Jan 2006
Location: The Kop
Well if you really want to be sure I'd melt the drives down.

With 35 passes it is pretty safe to assume that no general person can recover the files, now the NSA that is a different matter.
xUKHCx is offline   0 Reply With Quote
Old Aug 8, 2007, 11:23 AM   #9
mkrishnan
Moderator emeritus
 
mkrishnan's Avatar
 
Join Date: Jan 2004
Location: Grand Rapids, MI, USA


Incidentally, Disk Utility *is* secure. sudo rm -rf just deletes the file in the standard way. It's not secure from data recovery at all, any more than just dragging the file to the trash.
__________________
Mohan
mkrishnan is offline   0 Reply With Quote
Old Aug 8, 2007, 11:27 AM   #10
Eraserhead
macrumors G4
 
Eraserhead's Avatar
 
Join Date: Nov 2005
Location: UK
Quote:
Originally Posted by Mindcrime13 View Post
cuz theres some info in my computer that i really dont want anyone to or try see or to get with a recovery tool
You can just put it in the trash and choose secure empty trash...
Eraserhead is online now   0 Reply With Quote
Old Aug 8, 2007, 11:29 AM   #11
Mindcrime13
Thread Starter
macrumors member
 
Join Date: Jun 2007
hahah well its no NSA material LOL, but its some stuff i;ve been writing in python, and a friend of mine wants tog et it and call it his, and that freaks em out a little,
Mindcrime13 is offline   0 Reply With Quote
Old Aug 8, 2007, 11:31 AM   #12
xUKHCx
Administrator emeritus
 
xUKHCx's Avatar
 
Join Date: Jan 2006
Location: The Kop
wow you must have pretty bad friend if you are going down this route.
xUKHCx is offline   0 Reply With Quote
Old Aug 8, 2007, 11:33 AM   #13
Mindcrime13
Thread Starter
macrumors member
 
Join Date: Jun 2007
yea its a love-hate relationship
Mindcrime13 is offline   0 Reply With Quote
Old Aug 8, 2007, 12:33 PM   #14
SilentPanda
Moderator emeritus
 
SilentPanda's Avatar
 
Join Date: Oct 2002
Location: The Bamboo Forest
In that case don't erase your whole machine. Just delete the python files and in disk utility you can choose to erase your free hard drive space. You can choose the multiple pass option. Honestly I wouldn't bother going over it more than 1 or 2 times... any more than that and your friend is probably just crazy and I would seek new friends.
__________________
My 24 hour web cam!
SilentPanda is online now   0 Reply With Quote
Old Aug 8, 2007, 01:24 PM   #15
Mindcrime13
Thread Starter
macrumors member
 
Join Date: Jun 2007
hm i dint know that about deleting the free space! thanks, ill do that,
Mindcrime13 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Remap command q to command h and vice versa? TheArgonaut OS X Mavericks (10.9) 1 Jan 29, 2014 09:08 AM
General: iOS7 command line... Equivalent of "say" command? RobertoG Jailbreaks and iOS Hacks 0 Jan 19, 2014 05:05 PM
Opposite of Command+A? marcusj0015 Mac Applications and Mac App Store 3 Oct 11, 2012 11:33 PM
Command + ` badman89 OS X 3 Aug 17, 2012 09:42 AM

Forum Jump

All times are GMT -5. The time now is 05:15 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC