Ubuntu檢視軟硬體配置
阿新 • • 發佈:2018-11-02
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