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
问题:
如何pip 版本无法更新
apt-get remove python-pip