Friday, November 17, 2017

How to take out the Trash from command line in Ubuntu 17.10

>How to use the trash from the command line?

The pain

Setting up new projects is frequently time consuming, with many false starts until everything is setup right. In fact once CI is set up and the version on the local machine is less important. I've been encountering this Ubuntu annoyance whenever starting a new project.

I could create smart aliases for rm with a command line trash folder. But there would be two trash folders. I just want to access the same trash folder from the command line that I can access through the desktop. It also turns out that this has been the subject of not one not two but at east three packages. This following option is quick, safe (as it is reversible) and lets us focus on the the setup.

Doing machine learning also creates big models and large downloaded data sets that can hog up the limited fast storage. Still I don't enjoy retraining a big model because I accidental tossed out the last good model with all the previous runs.

The remedy 

Install trash-cli 
>sudo apt-get install trash-cli
then simply
>trash bad-project-dir
>trash old-config-file
list the trash
and even empty it once things have stabilized


No comments:

Post a Comment