Ubuntu查看软硬件配置

1. 查看系统内核

$ uname -a
Linux philipsweb 3.2.0-67-generic #101-Ubuntu SMP Tue Jul 15 17:46:11 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

2. 查看Linux版本

$ ls -l /etc/*-release
-rw-r--r-- 1 root root 106 Jul 30  2014 /etc/lsb-release
-rw-r--r-- 1 root root 141 Jul 30  2014 /etc/os-release
cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.5 LTS"

3. 查看CPU

$ cat /proc/cpuinfo | grep model\ name
model name      : Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz
model name      : Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz
model name      : Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz
model name      : Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz

4. 查看内存

$ cat /proc/meminfo | grep MemTotal
MemTotal:       16172540 kB

5. 查看显卡

lspci | grep 'VGA'
00:02.0 VGA compatible controller: Cirrus Logic GD 5446

6. 查看硬盘

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1       20G  8.4G   11G  45% /
udev            7.9G  4.0K  7.9G   1% /dev
tmpfs           1.6G  276K  1.6G   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            7.8G   76K  7.8G   1% /run/shm
/dev/xvdb1      493G  218G  250G  47% /alidata1
/dev/xvdc1      252G  189G   52G  79% /alidata2

猜你喜欢

转载自blog.csdn.net/weixin_42557486/article/details/81358361