No More Headaches From Rm The Wrong Files

Posted By Weston Ganger

<p>Have you every rm'd a file or rm -r with some wildcard and deleted way too much. Well say goodbye to those headaches.</p>
<p>First download the trash-cli:</p>

alias rm=trash

<p>Now open a new tab, new terminal, or reload your shell put your new alias into effect.</p>
<p>Now whenever you use rm or rm -r it places the files in the Trash, not deleted forever, phew!</p>
<p>NOTE: Does not work with sudo rm</p>

Article Topic:Software Development - Linux

Date:June 07, 2014