Did this ever happen to you? You realized that you had mistakenly deleted a file – either through the Del key, or using
rm
in the command line.
In the first case, you can always go to the Trash, search for the file, and restore it to its original location. But what about the second case? As I am sure you probably know, the Linux command line does not send removed files anywhere – it REMOVES them. Bum. They’re gone.
Suggested Read: How to Recover Deleted Files/Directories Using Scalpel Tool
Create an alias to ‘rm -i’
The
-i
switch, when used with rm (and also other file-manipulation tools such as cp or mv) causes a prompt to appear before removing a file.
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► Read more: http://adf.ly/1n5YVP
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
No comments:
Post a Comment