Trash
From KevinWiki
(Difference between revisions)
Kevin (Talk | contribs)
(New page: Category:Linux == Location (Ubuntu Linux 8.10) == $HOME/.local/share/Trash The sub-directories of the Trash directory contains the file removed and the original location and the time...)
(New page: Category:Linux == Location (Ubuntu Linux 8.10) == $HOME/.local/share/Trash The sub-directories of the Trash directory contains the file removed and the original location and the time...)
Latest revision as of 02:36, 25 March 2009
Location (Ubuntu Linux 8.10)
$HOME/.local/share/Trash
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>
e.g.
$ gvfs-trash delete_this.txt
-For convenience, open the $HOME/.bashrc
file and put the following line.
alias trash=gvfs-trash