查看Linux系统的版本信息
[root@www conf]# more /etc/redhat-release
CentOS release 6.4 (Final)查看内核版本
[root@www conf]# uname -r
2.6.32-358.el6.x86_64- 查看CPU的信息
[root@www conf]# more /proc/cpuinfo | grep “model name”
model name : QEMU Virtual CPU version (cpu64-rhel6)
model name : QEMU Virtual CPU version (cpu64-rhel6)
model name : QEMU Virtual CPU version (cpu64-rhel6)
model name : QEMU Virtual CPU version (cpu64-rhel6) - 查看内存信息
[root@www conf]# grep MemTotal /proc/meminfo
MemTotal: 3920640 kB
[root@www conf]# free -m
total used free shared buffers cached
Mem: 3828 1093 2734 0 188 483
-/+ buffers/cache: 422 3406
Swap: 1999 0 1999 - 查看磁盘和分区信息
[root@www conf]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda3 37G 11G 25G 30% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/vda1 485M 32M 429M 7% /boot - 查看主机名称
[root@www conf]# hostname
www.web.com
如何查看Linux系统的相关配置信息
最新推荐文章于 2024-07-18 09:38:17 发布