Learning Linux(8): Preventing 'rm' command from removing important files
来源:互联网 发布:wingide linux 破解 编辑:程序博客网 时间:2024/05/16 06:54
In Ubuntu, use command:
$ sudo apt-get install trash-cli
then put that alias in .bashrc or the appropriate login script for your shell of choice.
$ alias rm=trash
The trash-cli
package is a command-line interface to the same trash can that GNOME and KDE and other use. So anything you delete via the trash
command can be restored by GNOME/KDE and vice-versa.
The other commands in the trash-cli
package are list-trash
, empty-trash
, and restore-trash
.
- Learning Linux(8): Preventing 'rm' command from removing important files
- Removing obsolete files from server
- Eclipse Removing obsolete files from server 问题
- Eclipse下部署项目问题:Removing obsolete files from server
- eclipse配置tomcat Removing obsolete files from server..... 问题
- Removing obsolete files from server... Could not delete
- linux command: cp, mv, rm
- Removing obsolete files from server... Could not clean server of obsolete files: Premature end of fi
- Linux Command Learning
- Linux - one command per day--rm
- 启动Tomcat报错——Eclipse Removing obsolete files from server
- 系统宕机后,eclipse 无法启动tomcat -提示问题Removing obsolete files from server
- eclipse 里面启动tomcat 提示问题Removing obsolete files from server...
- Eclipse tomcat启动web项目 报错 Removing obsolete files from server..Could not clean server ...
- 关于Tomcat 启动 Removing obsolete files from server Could not clean server of obsolete 问题解决
- Removing obsolete files from server...电脑异常关机,导致tomcat出问题
- Linux Directory Structure and Important Files Paths Explained
- Linux Directory Structure and Important Files Paths Explained
- 网页中实现浮动客服窗口
- 转发:struts中radio怎么样默认选中
- 转-oracle日期函数使用
- 枚举类型 和 if switch case
- 解决Linux系统下SSH远程登录很慢的问题
- Learning Linux(8): Preventing 'rm' command from removing important files
- MAXScript101_5.1 ChainMaker-Geometry Creation using Splines
- 网页中实现浮动可隐藏客服窗口
- 双ADSL建立局域网
- Android平台搭建过程中的问题
- CLOCK
- 医疗行业信息系统开发资料
- Python 内建函数
- Android平台拨号功能的总结