1.1 time测程序运行时间
time ./myprogram
time python mypythonscript.py
1.2 软件卸载
apt-get 工具
apt-get install//安装 apt-get remove //卸载步骤1 apt-get autoremove //卸载步骤2find 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

本文介绍了如何使用time命令来测量程序的运行时间,并提供了详细的命令示例。此外,还介绍了如何利用apt-get工具进行软件安装和卸载的方法,包括具体的步骤和命令用法。对于难以卸载的文件,提供了find结合rm命令的强力删除方案。

1661

被折叠的 条评论
为什么被折叠?



