From KevinWiki

Jump to: navigation, search

Location (Ubuntu Linux 8.10)


The sub-directories of the Trash directory contains the file removed and the original location and the time when the file is removed.

  • files: A directory which keeps the file removed.
  • info: A directory which keeps the path in which the file is located before it is removed and the time when it is removed.

Moving Files to the Trash Instead of Removing in CLI

gvfs-trash can be used to move files to the trash rather than removing directly with rm command. -To install gvfs-trash,

$ sudo apt-get install gvfs-bin 

-How to use

$ gvfs-trash <file or directory path>


$ gvfs-trash delete_this.txt

-For convenience, open the $HOME/.bashrc file and put the following line.

alias trash=gvfs-trash
Personal tools