LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-03-2003, 10:15 AM   #1
DiZASTiX
Member
 
Registered: Mar 2003
Location: Boston Area
Distribution: Ubuntu (Edgy)
Posts: 247

Rep: Reputation: 30
A question about the command "rm"


Hey, when i do "rm --help" it says this at the end:

Quote:
Note that if you use rm to remove a file, it is usually possible to recover
the contents of that file. If you want more assurance that the contents are
truly unrecoverable, consider using shred.
Does this mean if i did "rm -r directory" i can get directory back with all the files that were in it? If so how? Thanks

Last edited by DiZASTiX; 06-03-2003 at 10:16 AM.
 
Old 06-03-2003, 10:39 AM   #2
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Rep: Reputation: 31
When you use rm the reference to the file is removed but the actual bitmap of the file is still on the disk. technically, a person could come in and retrieve a file or files by searching your disk for bitmaps of common file configurations (which I don't know how to do) as long as they have not been written over by new information. Shred, I belive, will not only remove the reference but will also set the bitmap to all zeros erasing the old bitmap. If i am wrong about any of this, someone please correct me.
 
Old 06-03-2003, 11:54 AM   #3
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
rm just clears the inode. shred overwrites data before clearing the inode. However, shred is not necessarily effective on journaled filesystems. If you have removed an entire directory and have not yet written anything else to the disk, it is possible to recover your data, but it's not easy and many companies make their money doing just that. I'm sure you can find information on how to recover data by searching the web.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 07:42 AM
shell question: the "mv" command with multiply files basher400 Linux - Newbie 4 12-19-2005 07:42 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM
"segmentation error" when issuing "useradd" command through terminal with RH 9.0 kaihuang Linux - General 0 10-21-2003 11:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration