How to Undelete Linux Recovery

Users familiar with the Windows operating system are used to having a method in which they can undelete files easily. However, the Linux operating system does not save your deleted files. Once you delete them, they are gone. If you accidentally delete a file, it may be possible to recover it, but it must be done before the program that was using it is shut down. Once the program is terminated, the file will be permanently deleted.

Things You'll Need

  • Pencil or pen
  • Paper
Show More

Instructions

    • 1

      Open a new terminal. Type "$ lsof | grep [deleted file name]." This will return information regarding where a copy of the deleted file is stored within the "/proc" directory.

    • 2

      Take note of the numbers in the second and fourth columns. The second column will contain a four digit number, and the fourth column will be a single digit and a letter. Write these numbers down.

    • 3

      Type "$ cp /proc/num1/fd/num2 [lost file name]" at the command prompt. Replace "num1" and "num2" with the numbers from the previous step. This command will copy the file from the "/proc" directory. The "lost file name" will be the name of the new saved file. For example, if the numbers you wrote down in the previous step were "4834" and "5g," you would enter "$ cp /proc/4834/fd/5g [newFile]."

Related Searches:

References

Comments

You May Also Like

  • How to Undelete Linux

    Deleting a Linux file by accident can be devastating to your productivity. Linux files are deleted when the "rm <file1>" command is...

  • Undelete Tools for Linux

    Undelete Tools for Linux. Linux is a free operating system that is similar to the UNIX operating system. Linux operates under the...

  • How to Undelete Files in Ubuntu

    The Linux-based Ubuntu operating system does not come with an undelete application out of the box, but due to the open source...

  • How to Undelete Deleted Files in Linux

    Accidentally deleting a critical Linux file can cause sudden panic. Linux files are deleted when the "rm <file>" command is run. If...

  • How to Undelete ZFS Files

    When you delete a file on your computer, the Windows operating system saves it in the Recycle Bin. This includes ZFS files,...

  • How to Undelete Emails

    No need to panic when you have just deleted that all-important email. Most of the time, these emails can be retrieved from...

  • How to Restore Deleted Files on Linux

    Some operating systems have means to undelete or restore deleted files. If you delete a file in Linux and want to restore...

  • How to Show Deleted Files in Ubuntu

    Ubuntu is a version of Linux that has been adopted by many computer users due to the ease of installation, similarities in...

  • How to Recover Files Deleted in Bash Shell

    Occasionally you may accidentally delete files that you need. Retrieving these files with the Bash shell is possible as long as the...

  • How to Recover Deleted Files in EXT3

    The EXT3 (third extended file system) is a journaling file system used in many Linux distributions and packaged as the default file...

  • How to Use Active Undelete

    Active Undelete will use its advanced file recovery to preview the contents of the file as well as the file cluster's file...

  • Can I Restore Deleted Files?

    When a file is deleted from a computer system, it is sent to the "Recycle Bin" or the "Trash" depending on the...

  • How to Undelete RAID Data Recovery

    RAID -- Redundant Array of Inexpensive Disks -- is hardware that provides increased storage solutions for computers. If you have a RAID...

  • Linux Windows File Recovery

    Strange though it sounds, Linux does a better job of recovering files from a corrupted or compromised Windows installation than Windows itself....

  • How to Recover Uninstalled Files

    Click "Privacy & Security" and then "File Undelete." Click "Search" and Glary Utilities will scan the computer for files once deleted but...

Related Ads

Featured