linux常用命令

一、查看Linux内核版本命令(2种方法):
uname -a
Linux yunchu 5.11.0-27-generic #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
cat /proc/version
Linux version 5.11.0-27-generic (buildd@lcy01-amd64-019) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #29~20.04.1-Ubuntu SMP Wed Aug 11 15:58:17 UTC 2021

二、查看Linux系统版本的命令(2种方法):

适用于所有linux发行版:
(其一)
cat /etc/issue
Ubuntu 20.04.3 LTS \n \l
(其二)
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal

参考资料:
https://www.cnblogs.com/jinyuanliu/p/10368780.html
感谢博主!!!

上一篇:docker升级


下一篇:利用QPainter、QColor绘制黑白棋盘功能