about rm


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers about rm
Prev   Next
# 5  
Old 12-22-2011
The "rm" command deletes the file. There is no "undelete" in unix. There is no "recycle bin".
Ensure that the files appear on a recent backup before deleting them.

There are specific exceptions for Links:
If you delete a Soft Link to a file, it only deletes the Soft Link not the object file.
If there are Hard Links to a file, the last Hard Link which you delete actually deletes the file.

Be very careful, and try out commands on a training computer.


After re-reading your post. The "rm" command just removes the entry from the directory and marks the disc blocks as free. If no other program re-used the disc blocks it might be possible to retrieve the data with very sophisticated tools (which do not come with unix). If you are concerned about security, there are add-on commands to replace "rm" with a command that does wipe the disc blocks.

Last edited by methyl; 12-22-2011 at 11:59 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question
delete(n)							    [incr Tcl]								 delete(n)

NAME
delete - delete things in the interpreter SYNOPSIS
delete option ?arg arg ...? DESCRIPTION
The delete command is used to delete things in the interpreter. It is implemented as an ensemble, so extensions can add their own options and extend the behavior of this command. By default, the delete command handles the destruction of namespaces. The option argument determines what action is carried out by the command. The legal options (which may be abbreviated) are: delete class name ?name...? Deletes one or more [incr Tcl] classes called name. This deletes all objects in the class, and all derived classes as well. If an error is encountered while destructing an object, it will prevent the destruction of the class and any remaining objects. To destroy the entire class without regard for errors, use the "delete namespace" command. delete object name ?name...? Deletes one or more [incr Tcl] objects called name. An object is deleted by invoking all destructors in its class hierarchy, in order from most- to least-specific. If all destructors are successful, data associated with the object is deleted and the name is removed as a command from the interpreter. If the access command for an object resides in another namespace, then its qualified name can be used: delete object foo::bar::x If an error is encountered while destructing an object, the delete command is aborted and the object remains alive. To destroy an object without regard for errors, use the "rename" command to destroy the object access command. delete namespace name ?name...? Deletes one or more namespaces called name. This deletes all commands and variables in the namespace, and deletes all child names- paces as well. When a namespace is deleted, it is automatically removed from the import lists of all other namespaces. KEYWORDS
namespace, proc, variable, ensemble itcl 3.0 delete(n)