1752489 Members
5611 Online
108788 Solutions
New Discussion юеВ

Recover deleted files

 
Carles Viaplana
Valued Contributor

Recover deleted files

Hello,

Using GUI all you delete is sent to trash. Is there any kind of trash in command mode?

I'm doing tests with some text and binary files and I can't. Do you have any idea wether there's any directory/tool to recover deleted files from command line?

Thanks in advance,

Carles
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Recover deleted files

No automated re-cycle bin.

This functionality is added to Linux with installation of third party programs.

If you do so it will work in command line mode as well.

If you have already deleted something you are out of luck.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: Recover deleted files

I'm reversing myself. I see a trash can on recent Linux installs.

You can cd to it and copies files out of it.

Its usually a subdirectory of $HOME/Desktop

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
dirk dierickx
Honored Contributor

Re: Recover deleted files

sure, if stuff is in the trashcan you can just copy it out again. but things deleted in a shell (with the rm command) do not go to 'trash' but are really deleted.
Carles Viaplana
Valued Contributor

Re: Recover deleted files

I assume there's no way to recover deleted files using rm command.

Thanks to all for your messages.
Regards,

Carles
David Timms
Frequent Advisor

Re: Recover deleted files

I guess you could possibly write a script that replaces rm with a mv .... might work.
Dave.
Phil Daws_5
Occasional Advisor

Re: Recover deleted files

or create a shell alias and add it to the default profile ?