linux查看硬件信息

last reboot
查看系统历史启动的时间

top
up后表示系统到目前运行了多久时间


//内存条大小 dmidecode |grep -A 16 "Memory Device$"|grep -i "size"|grep -iv "No module installed"

linux - python:卸载
[root@test ~]# rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps ##强制删除已安装程序及其关联
[root@test ~]# whereis python |xargs rm -frv ##删除所有残余文件 ##xargs,允许你对输出执行其他某些命令
[root@test ~]# whereis python ##验证删除,返回无结果

添加变量

 vi /etc/profile

PATH=/usr/local/python3/bin:$PATH

export PATH

posted on 2019-11-28 11:40  joeshang  阅读(112)  评论(0编辑  收藏  举报

导航