Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 10-24-2003, 02:31 AM   #1
LQ Newbie
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
Restoring / Undeleting a file

I accidently removed / deleted a java file in linux using the rm command. Is it possible for me to restore the files that I have accidentally deleted. What do I do?

Old 10-24-2003, 02:34 AM   #2
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
There is no undelete from the rm command. If you want undelete, then you will have to use a gui file manager in a desktop environment such as KDE, Gnome, or Xfce.
Old 10-24-2003, 03:06 AM   #3
LQ Newbie
Registered: Oct 2003
Posts: 3

Original Poster
Rep: Reputation: 0
KDE, Gnome

How do I load this file managers?

Old 10-24-2003, 07:35 AM   #4
Registered: Aug 2002
Posts: 16,014

Rep: Reputation: 1848Reputation: 1848Reputation: 1848Reputation: 1848Reputation: 1848Reputation: 1848Reputation: 1848Reputation: 1848Reputation: 1848Reputation: 1848Reputation: 1848
Your probably out of luck.

Someone correct me if I'm wrong but the GUIs have a trash can just like windows. So if you didn't delete the file to the trash can to begin you will have a very difficult time trying to recovery it.

What is your filesystem. If it is an ext2 fileysytem there is a better chance then any other.

If you have ever modified the file in the past there might be a backup created by the text editor.
Old 10-24-2003, 07:59 AM   #5
Registered: Oct 2003
Location: Europe/Sweden
Distribution: RedHat
Posts: 78

Rep: Reputation: 15
rm removed files, it "unlink" it. unlink är to detach its filename and the fysical storage on the disc. The space is free for any other file to overwrite if they want to. The file is gone. Do not remove important files, move them to a tmp directory, and when you know you dont need them delete them. I know this doesnt help you alot, theres some library you can reload to rescue files from RM. the library interfect the rm call and does not unlink the file but it moves it.. Ofcourse you have to had it installed before you removed the file =) .. Except from this theres a ext2 debug tool, when you go in to the filesystem and find the area on the disk, and you can link it against a new filename.

I would surgest that you reinstall the java*rpm and ignore the problem.. --force be to your help dealing with rpm.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Restoring Apache httpd.conf file shof515 Fedora 1 11-24-2005 10:54 PM
Restoring an old xord.config file Bryanlee Linux - Newbie 9 05-15-2005 08:35 PM
Help restoring file permissions from a Dump bminish Linux - Newbie 3 12-12-2004 01:34 PM
Restoring a rm'ed file? sharpie Linux - Newbie 6 02-03-2004 03:05 AM
undeleting a file from a fat file system schatoor Linux - General 2 01-09-2003 06:04 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:42 AM.

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