1、系統信息
uname -a
顯示linux的內核版本和系統是多少位的:X86_64代表系統是64位的。
Linux field-ubuntu-18 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
2、linux版本號
cat /proc/version
Linux version 4.15.0-20-generic (buildd@lgw01-amd64-039) linux內核版本號 gcc version 7.3.0 gcc編譯器版本號 Ubuntu 7.3.0-16ubuntu3 ubuntu版本號 #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018
3、ubuntu版本號
lsb_release -a
順便記錄下 CentOS查看版本號
cat /etc/redhat-release