歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux教程

Ubuntu終端回收站小工具

前天手賤mv ~/.vimrc搞成rm ~/.vimrc......又是ext4,多虧重要設置大多在ftplugin中,不過也是比較郁悶的。

於是網上一搜有個叫trash-cli的小工具可以在終端下操縱回收站,

Ubuntu安裝方法: sudo apt-get install trash-cli

trash-list列出回收站文件

trash-empty清空回收站

trash-put刪除文件到回收站

.bashrc加入 alias rm=trash-put

這下安逸多了~~~~~`

Copyright © Linux教程網 All Rights Reserved