您的位置:首页 > 运维架构 > Shell

Linux-shell备忘录=>LTS

2015-12-05 20:41 567 查看

1.1 time测程序运行时间

time ./myprogram
time python mypythonscript.py


1.2 软件卸载

apt-get 工具

apt-get install//安装
apt-get remove //卸载步骤1
apt-get autoremove //卸载步骤2


find rm 组合暴力但有效的删除

#先看一看所在的位置
sudo find /  -name "xxx"
# 然后按目录删除 /home下的文档可以保留("\;"不知道是什么格式,但不能缺少)
#spec_dir:/var /etc /bin 诸如此类目录
sudo find spec_dir  -name "xxx" -exec rm -r {} \;


关于find 更多详情参考> http://man.linuxde.net/find
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: