Linux(CentOS)のシステムバージョンを確認する

1. Linuxシステムのバージョン

  • この方法は Redhat Linux にのみ適しています
cat /etc/redhat-release

CentOS Linux リリース 7.9.2009 (コア)

  • すべてのバージョン情報。このコマンドは、RedHat、SUSE、Debian などを含むすべての Linux ディストリビューションに適用できます。
lsb_release -a

LSB バージョン:base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0- noarch
ディストリビューター ID: CentOS
説明: CentOS リリース 6.5 (最終版)
リリース: 6.5
コード名: 最終版

  • このコマンドはすべての Linux ディストリビューションでも機能します
cat /etc/issue


\m 上の\Sカーネル \r

2. Linuxカーネルバージョンコマンド

cat /proc/version

Linux バージョン 3.10.0-1160.el7.x86_64 ([email protected]) (gcc バージョン 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP 月 10 月 19 日 16: 18:59 UTC 2020

uname -a

Linux localhost.localdomain 3.10.0-1160.el7.x86_64 #1 SMP 月 10 月 19 日 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

おすすめ

転載: blog.csdn.net/lishuoboy/article/details/130629269