如何查看Linux系统的相关配置信息

  • 查看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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值