ubuntu中用命令行把文件移到回收站 move files to trash from command line

来源:互联网 发布:北大荒网络电视台 编辑:程序博客网 时间:2024/05/22 05:24

http://karuppuswamy.com/wordpress/2010/06/08/how-to-manage-trash-from-command-line-in-gnome-delete-list-restore-and-empty/
ubuntu中用命令行把文件移到回收站 move files to trash from command line

先安装一个包
sudo aptitude install trash-cli


It installs three commands,

1. list-trash             to list down the files in trash

2. trash                  to move the file to trash

3. restore-trash       to restore the file to original path