読者です 読者をやめる 読者になる 読者になる

サーバ情報(OS,CPU,メモリ)を調べるコマンド

Linux

RedHatLinuxでOSバージョンを調べたりするコマンドです。

$ cat /etc/redhat-release
$ cat /proc/version
$ cat /proc/cpuinfo
$ cat /proc/meminfo

手元のVMware上のCentOSで実行した結果。

$ cat /etc/redhat-release
CentOS release 5 (Final)
$ cat /proc/version
Linux version 2.6.18-8.el5 (mockbuild@builder4.centos.org) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #1 SMP Thu Mar 15 19:57:35 EDT 2007
$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      : Intel(R) Pentium(R) 4 CPU 2.80GHz
stepping        : 8
cpu MHz         : 2792.204
cache size      : 1024 KB
(長いので略)
$ cat /proc/meminfo
MemTotal:       515600 kB
MemFree:         19800 kB
Buffers:         46688 kB
Cached:         290928 kB
(長いので略)


近くのマシンでやってみた。Fedora系が無かったけど。

$ cat /etc/redhat-release
Red Hat Linux release 7.1 (Seawolf)

$ cat /etc/redhat-release
Red Hat Linux release 8.0 (Psyche)

$ cat /etc/redhat-release
CentOS release 4.4 (Final)

$ cat /etc/redhat-release
CentOS release 4.5 (Final)

$ cat /etc/redhat-release
CentOS release 4.6 (Final)

$ cat /etc/redhat-release
CentOS release 5 (Final)

$ cat /etc/redhat-release
Red Hat Enterprise Linux ES release 3 (Taroon)

$ cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 5)

$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.1 (Tikanga)