1. 获取linux下的python命令位置:
which python(which python3)
whereis python(whereis python3)
2. 获取linux下的python 包安装位置:
pip list(pip3 list)
pip show pandas(pip3 show pandas)
3. linux中添加路径:
vi ~/.bash_profile
source ~/.bash_profile
4. linux中移动文件:
mv + 原文件路径 + 目标文件目录
5. linux查看当前文件夹下的文件大小:
du -sh *
6. 查看CPU情况:
# 总核数 = 物理CPU个数 X 每颗物理CPU的核数
# 总逻辑CPU数 = 物理CPU个数 X 每颗物理CPU的核数 X 超线程数
# 查看物理CPU个数
cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
# 查看每个物理CPU中core的个数(即核数)
cat /proc/cpuinfo| grep "cpu cores"| uniq
# 查看逻辑CPU的个数
cat /proc/cpuinfo| grep "processor"| wc -l
https://blog.youkuaiyun.com/cuker919/article/details/7635488/
7. 查看内存:
free
8. 查看操作系统:
cat /etc/centos-release
https://blog.youkuaiyun.com/sinat_29158315/article/details/81813556
https://blog.youkuaiyun.com/mr_orange_klj/article/details/80032494