Sometimes, you may delete some files from jupyter notebook by mistake, how to recover them? In this tutorial, we will introduce you how to do.
How to recover files deleted from jupyter notebook?
For example, you may delete some files in jupyter notebook as follows:
However, you have found that you deleted it by mistake, how to recover it?
You can do as follows:
Step 1: cd to /home/your_username
For example, our home path is jovyan, we can find the deleted file in path: /home/jovyan/.local/share/Trash/files
Step 2: list the deleted file by its file type
For example, if your deleted file is a python script, you can do by this command:
ls *.py
Then you can find your deleted file in this directory. You can recover it by cp command.
Linux Copy a Directory to Other Dictionary – Linux Tutorial