LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-11-2010, 12:48 PM   #1
ibwood
Member
 
Registered: Jul 2010
Posts: 46

Rep: Reputation: 15
Angry My code deleted itself on Ubuntu Karmic


I honestly don't know what happened. I just checked the folder that the code was normally in and it's gone I don't have it backed up either. Is there any way I can get it back??
 
Old 08-11-2010, 12:57 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
It might be the inode corrupted, try doing an "ls -a" you might get lucky and there is a .lost and found directory in place in this instance... else I would not know how to recover the inode... if this is what has occurred as I suspect. If there are other inode references to it they might be able to get you back to the code (ie a hard link)
 
Old 08-11-2010, 01:11 PM   #3
ibwood
Member
 
Registered: Jul 2010
Posts: 46

Original Poster
Rep: Reputation: 15
I was able to get it back. I had no luck with "ls -a" but fortunately there was a hidden file in the same directory (a backup from saving) that I was able to restore what a relief! Thanks for responding and trying to help r3sistance.

So, if you somehow find that your files randomly disappear, look under the "view" menu and click "Show hidden Files". There should be a backup file that has the same name (only differs by a "~" symbol at the very end). Simply rename the file and delete the "~".

-Ian

Last edited by ibwood; 08-11-2010 at 01:15 PM.
 
Old 08-11-2010, 01:18 PM   #4
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
I believe this tends to be something some GUI tools do, command line tools like nano and vi I am fairly sure don't do this. So you were saved by GUI tools. If something is important to you, back it up. store it on a USB Disc, upload it to a storage service... just keep more then one copy of it. As you are saying you code, maybe you should consider a form of revision control.
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't run Python code at Boot - Ubuntu Karmic micksulley Linux - Kernel 1 01-29-2010 09:38 PM
upgrading from Ubuntu 9.10 Karmic Koala 32-bit to Ubuntu 9.10 Karmic Koala 64-bit aryan1 Ubuntu 1 01-21-2010 05:20 AM
I've updated my toshiba a40 laptop from ubuntu jackalop3 to ubuntu 9.10 (karmic) slefave Linux - Newbie 1 12-20-2009 07:33 PM
LXer: The Perfect Server - Ubuntu Karmic Koala (Ubuntu 9.10) [ISPConfig 2] LXer Syndicated Linux News 0 11-08-2009 11:00 AM
LXer: Upgrade Ubuntu 9.04 (Jaunty Jackalope) to Ubuntu 9.10 (Karmic Koala) Beta LXer Syndicated Linux News 0 10-12-2009 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration