Ubuntu restore deleted files

There are several ways to recover deleted files in Ubuntu. Here are some of them:

1. Using a data recovery program: There are many programs, such as TestDisk or PhotoRec, which allow you to scan the hard drive and find deleted files. Install one of these programs through the package manager (apt-get) and follow the instructions for use.

2. Trash check: If you accidentally deleted a file using the graphical interface, it can be moved to the trash before final deletion. Simply open your Recycle Bin on your desktop or use `ls -a ~/.local/share/Trash/files' to view the contents of your local Recycle Bin.

3. Using system backup: If you created a backup copy of system data before it was deleted, it will be possible to return to the previous version of the file using the function of temporary points (snapshots). To do this, execute the `sudo timeshift –restore` command, choosing the right moment in time for recovery.

4. Use extundelete: This is another program for Linux that can help restore deleted files. Install it using the command `sudo apt-get install extundelete' and follow the instructions for use.

It is important to note that the sooner you start the recovery process after deleting a file, the greater the chances of its successful recovery. In addition, it is recommended not to write new data to the disk until the recovery procedure is complete to prevent overwriting of old data.

View all data recovery questions