2

Possible Duplicate:
Make `rm` move to trash

I've looked everywhere for the answer, but I can't find it.

Is it possible to move/delete a file to the trash folder on linux. But also having the trashinfo file.

E.g I can move the file into the trash folder fine, but I don't have the trashinfo file.

tldr; How to delete a file to trash in BASH

Also, I'm using Ubuntu 12.10

1 Answers1

4

I'll copy my SO answer here:

In Ubuntu the trash files are kept in ~/.local/share/Trash/files

There is a trash command line interface that you can use. To install do:

sudo apt-get install trash-cli

Then, to trash something do:

trash-put myfile.txt
ltn100
  • 403