Linuxシステムでヘアバージョン番号とカーネルバージョンをクエリーするコマンドの概要
コードのコピー
# cat /etc/debian_version
5.0.7
# cat /etc/issue
Debian GNU/Linux 5.0 \n \l
2.Ubuntuバージョンクエリー:
コードのコピー
cat /proc/version
コードのコピー
uname -a
コードのコピー
lsb_release -a
3.CEntOSバージョンクエリー:
コードのコピー
# cat /etc/*-release
CentOS release 6.4 (Final)
CentOS release 6.4 (Final)
CentOS release 6.4 (Final)
4.RedHatバージョン照会:
コードのコピー
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.0 (Santiago)
5.Fedoraバージョンクエリー: