Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Terminal rm command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Terminal rm command




Files will be deleted if you use the -P flag.

Here is an excerpt from the man page for rm:

-P Overwrite regular files before deleting them. Files are
overwritten three times, first with the byte pattern 0xff,
then 0x00, and then 0xff again, before they are deleted.



- David


On Nov 20, 2004, at 6:16 PM, Dan Shoop wrote:


At 1:50 PM -0500 11/20/04, Anthony Palermo wrote:
To who can help or has an opinion in the matters,

Mac OS X Server 10.3.6
Terminal

When you use the rm command in terminal or any other CLI, where do the deleted files go ?

They don't "go" anywhere, they are unlinked from the filesystem and the "inodes" are released. (Actually HFS doesn't use inodes, but it's the same concept.)


Do they go to a "trash can" or are they immediately deleted from the hard drive ?

Neither. Files are actually never "deleted", they are only dereferrenced.
--


-dhan

----------------------------------------------------------------------- -
Dan Shoop AIM: iWiring
Systems & Networks Architect http://www.iwiring.net/
email@hidden http://www.ustsvs.com/


pgp key fingerprint: FAC0 9434 B5A5 24A8 D0AF  12B1 7840 3BE7 3736 DE0B

iWiring designs and supports Internet systems and networks based on
Mac OS X, unix, and Open Source application technologies and offers
24x7, guaranteed support to registered clients, at affordable rates.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Macos-x-server mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Terminal rm command (From: Anthony Palermo <email@hidden>)
 >Re: Terminal rm command (From: Dan Shoop <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.