Hello, I am doing the Linux command line course, I have a basic query " once I delete a file/folder using "rm" command, is there a way to recover deleted items like in Windows we use recycle bin to restore deleted files. ?? Thanks
-
Linux Command Line
-
I don't believe there is an equivalent of a Recycle Bin in Windows. So easy...not Windows easy.
Look here that might help you:
under the section
How to restore files deleted with rm command using Terminal
https://datarecoverypit.com/how-to-recover-a-file-deleted-with-rm/
Cordially,
Ronnie Wong
Edutainer Manager, ACI Learning [ITPRO]
*if the post has answered the question, mark as solved.
**All "answers" and responses are offered "as is" and my opinion. There is no implied service, support, or guarantee by ITProTV. -
I create an alias for rm that moves the files to another location. You can setup an alias in your .profile. You have to be sure to clear out the other location every so often or create a cron entry to periodically clean it out by performing the real rm.
Haven't viewed this course. Not sure how in depth it goes.
Bob
-
@Bob-Sellers ,
Thank you @Bob-Sellers , creating an alias is a good option, I shall try it along with the other methods mentioned by Mr. Wong. -
@Ronnie-Wong
Thank you Mr. Wong for the prompt reply, I shall try the methods mentioned in the link and let you know, Thanks again.