linux怎么查看系統(tǒng)硬件配置
想知道怎么用Linux查看電腦中的系統(tǒng)硬件配置嗎下面是學(xué)習(xí)啦小編帶來的關(guān)于linux怎么查看系統(tǒng)硬件配置的內(nèi)容,歡迎閱讀!
linux怎么查看系統(tǒng)硬件配置?
查看硬盤和分區(qū)分布:
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├—sda1 8:1 0 1G 0 part /boot
├—sda2 8:2 0 9.3G 0 part [SWAP]
├—sda3 8:3 0 74.5G 0 part /
├—sda4 8:4 0 1K 0 part
├—sda5 8:5 0 111.8G 0 part /home
└—sda6 8:6 0 269.2G 0 part
顯示很直觀
如果要看硬盤和分區(qū)的詳細(xì)信息:
# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00023728
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 2148351 1073152 83 Linux
/dev/sda2 2148352 21680127 9765888 82 Linux swap / Solaris
/dev/sda3 21680128 177930239 78125056 83 Linux
/dev/sda4 177932286 976771071 399419393 5 Extended/dev/sda5 177932288 412305407 117186560 83 Linux
/dev/sda6 412307456 976771071 282231808 83 Linux
網(wǎng)卡
查看網(wǎng)卡硬件信息:
# lspci | grep -i 'eth'
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
查看系統(tǒng)的所有網(wǎng)絡(luò)接口
# ifconfig -a
eth0 Link encap:以太網(wǎng) 硬件地址 b8:97:5a:17:b3:8f
lo Link encap:本地環(huán)回
或者是
ip link show
1: lo:
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0:
mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether b8:97:5a:17:b3:8f brd ff:ff:ff:ff:ff:ff
看了"linux怎么查看系統(tǒng)硬件配置"文章內(nèi)容的人還看:
4.linux系統(tǒng)如何查看內(nèi)存使用情況
6.Linux系統(tǒng)查看當(dāng)前時間的命令
7.如何查閱Linux系統(tǒng)正在使用的Shell版本
8.Linux系統(tǒng)怎么配置網(wǎng)絡(luò)IP地址