Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Lost content of file - RHEL5-Harddisk was almost full

    Dear All,
    I was editing one of my existing code. my hard disk was almost full. Once I saved and restarted my system, I found the contents of the file has been deleted. File is present in the file system; but the content became blank.

    Any way to retrieve my previous content.

    I'm not using any version control tools like cvs or git.

    Thanks in advance for any help to retrieve content of my file.


  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    That sounds like the save didnt succeed.
    In this case: content is lost. No way to restore.

    To verify that assumption, what do these commands tell?
    ls -al <YOUR_FILE>
    cat -A <YOUR_FILE> | head 10

    Other than that:
    You might want to introduce svn or git. But you probably came to that conclusion by now.
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts