检查和收集 Linux 硬件信息的 7 个命令
http://blog.sae.sina.com.cn/archives/3910
在Linux系统中,有许多命令可用于查询主机的硬件信息。一些命令只针对特定的硬件组件,比如CPU、内存,一些命令可以查询多个硬件信息。
这篇文章只是简单的让每个人了解查询硬件信息的基本命令使用,包括lscpu、hwinfo、lshw、lspci、lsblk、lsusb等等。
1. lscpu用于查询CPU信息
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s) list: 0
Thread(s) per core: 1
Core(s) per socket: 1
CPU socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 45
Stepping: 7
CPU MHz: 2194.842
BogoMIPS: 4389.68
Hypervisor vendor: Xen
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 15360K
NUMA node0 CPU(s): 0
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
[root@devops ~]# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 1
On-line CPU(s) list: 0
Thread(s) per core: 1
Core(s) per socket: 1
CPU socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 45
Stepping: 7
CPU MHz: 2194.842
BogoMIPS: 4389.68
Hypervisor vendor: Xen
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 15360K
NUMA node0 CPU(s): 0
|
2. lshw显示硬件信息表
这个命令应用普遍,它可通过个人需求而列出多种不同的硬件参数:CPU、内存、硬盘、USB控制器、lshw卡片等等,本质上就是从/proc目录不同文件中中提取对应的硬件信息。
按照下面的步骤去安装lshw工具,然后就可以使用了。
tar -zxvf lshw-B.02.14.tar.gz
cd lshw-B.02.14
make && make install
|
1
2
3
4
|
wget http://ezix.org/software/files/lshw-B.02.14.tar.gz
tar -zxvf lshw-B.02.14.tar.gz
cd lshw-B.02.14
make && make install
|
示例:
H/W path Device Class Description
=====================================================
system HVM domU
/0 bus Motherboard
/0/0 memory 96KiB BIOS
/0/1 processor Intel(R) Xeon(R) CPU E5-2430 0 @ 2.20GHz
/0/2 memory System Memory
/0/2/0 memory 512MiB DIMM RAM
/0/2/1 memory 512MiB DIMM RAM
/0/3 memory 96KiB BIOS
/0/4 processor CPU
/0/5 memory System Memory
/0/6 memory
/0/7 memory
/0/100 bridge 440FX - 82441FX PMC [Natoma]
/0/100/1 bridge 82371SB PIIX3 ISA [Natoma/Triton II]
/0/100/1.1 scsi1 storage 82371SB PIIX3 IDE [Natoma/Triton II]
/0/100/1.1/0.0.0 /dev/cdrom1 disk SCSI CD-ROM
/0/100/1.2 bus 82371SB PIIX3 USB [Natoma/Triton II]
/0/100/1.2/1 usb1 bus UHCI Host Controller
/0/100/1.2/1/2 input QEMU USB Tablet
/0/100/1.3 bridge 82371AB/EB/MB PIIX4 ACPI
/0/100/2 display GD 5446
/0/100/3 generic Xen Platform Device
/1 eth0 network Ethernet interface
/2 eth1 network Ethernet interface
[root@devops lshw-B.02.14]#
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
[root@devops lshw-B.02.14]# lshw -short
H/W path Device Class Description
=====================================================
system HVM domU
/0 bus Motherboard
/0/0 memory 96KiB BIOS
/0/1 processor Intel(R) Xeon(R) CPU E5-2430 0 @ 2.20GHz
/0/2 memory System Memory
/0/2/0 memory 512MiB DIMM RAM
/0/2/1 memory 512MiB DIMM RAM
/0/3 memory 96KiB BIOS
/0/4 processor CPU
/0/5 memory System Memory
/0/6 memory
/0/7 memory
/0/100 bridge 440FX - 82441FX PMC [Natoma]
/0/100/1 bridge 82371SB PIIX3 ISA [Natoma/Triton II]
/0/100/1.1 scsi1 storage 82371SB PIIX3 IDE [Natoma/Triton II]
/0/100/1.1/0.0.0 /dev/cdrom1 disk SCSI CD-ROM
/0/100/1.2 bus 82371SB PIIX3 USB [Natoma/Triton II]
/0/100/1.2/1 usb1 bus UHCI Host Controller
/0/100/1.2/1/2 input QEMU USB Tablet
/0/100/1.3 bridge 82371AB/EB/MB PIIX4 ACPI
/0/100/2 display GD 5446
/0/100/3 generic Xen Platform Device
/1 eth0 network Ethernet interface
/2 eth1 network Ethernet interface
[root@devops lshw-B.02.14]#
|
3. hwinfo-硬件信息
hwinfo类似于lshw,也能查询硬件信息,且应用广泛。它也能输出多个硬件部分的详细或者简要信息,但是不同的是有时hwinfo比lshw的信息更详细。
默认情况下,Linux系统没有安装hwinfo工具,所以你需要按照以下步骤自己安装:
CentOS 6
#yum list hwinfo
#yum install hwinfo
|
1
2
3
|
#rpm -Uvh http://mirror.symnds.com/distributions/gf/el/6/gf/x86_64/gf-release-6-6.gf.el6.noarch.rpm
#yum list hwinfo
#yum install hwinfo
|
CentOS 5
#yum list hwinfo
#yum install hwinfo
|
1
2
3
|
#rpm -Uvh http://mirror.symnds.com/distributions/gf/el/5/gf/x86_64/gf-release-5-6.gf.el5.noarch.rpm
#yum list hwinfo
#yum install hwinfo
|
Retrieving http://mirror.symnds.com/distributions/gf/el/6/gf/x86_64/gf-release-6-6.gf.el6.noarch.rpm
warning: /var/tmp/rpm-tmp.m2mMAO: Header V4 RSA/SHA1 Signature, key ID 13a4d2a9: NOKEY
Preparing... ########################################### [100%]
1:gf-release ########################################### [100%]
[root@devops tmp]# yum list hwinfo
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
gf
00:00
gf/primary_db
00:00
Available Packages
hwinfo.x86_64
[root@devops tmp]# yum list hwinfo
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
gf
00:00
gf/primary_db
00:00
Available Packages
hwinfo.x86_64 20.2-1.gf.el6
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
[root@devops tmp]# rpm -Uvh http://mirror.symnds.com/distributions/gf/el/6/gf/x86_64/gf-release-6-6.gf.el6.noarch.rpm
Retrieving http://mirror.symnds.com/distributions/gf/el/6/gf/x86_64/gf-release-6-6.gf.el6.noarch.rpm
warning: /var/tmp/rpm-tmp.m2mMAO: Header V4 RSA/SHA1 Signature, key ID 13a4d2a9: NOKEY
Preparing... ########################################### [100%]
1:gf-release ########################################### [100%]
[root@devops tmp]# yum list hwinfo
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
gf
00:00
gf/primary_db
00:00
Available Packages
hwinfo.x86_64
[root@devops tmp]# yum list hwinfo
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
gf
00:00
gf/primary_db
00:00
Available Packages
hwinfo.x86_64 20.2-1.gf.el6
|
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package hwinfo.x86_64 0:20.2-1.gf.el6 will be installed
.....
|
1
2
3
4
5
6
7
8
9
10
11
|
[root@devops tmp]# yum install hwinfo
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package hwinfo.x86_64 0:20.2-1.gf.el6 will be installed
.....
|
示例:
oops: don't know what to do with "short"
[root@devops tmp]# hwinfo --short
cpu:
Intel(R) Xeon(R) CPU E5-2430 0 @ 2.20GHz, 2194 MHz
keyboard:
/dev/input/event3 AT Translated Set 2 keyboard
/dev/ttyS0 serial console
mouse:
/dev/input/mice Adomax QEMU USB Tablet
/dev/input/mice Macintosh mouse button emulation
/dev/input/mice ImExPS/2 Generic Explorer Mouse
graphics card:
Cirrus Logic GD 5446
storage:
Intel 82371SB PIIX3 IDE [Natoma/Triton II]
Xen Virtual Storage 0
Xen Virtual Storage 1
Xen Virtual Storage 2
network:
eth0 Xen Virtual Ethernet Card 0
eth1 Xen Virtual Ethernet Card 1
network interface:
lo Loopback network interface
eth0 Ethernet network interface
eth1 Ethernet network interface
disk:
/dev/xvda Disk
/dev/xvdb Disk
partition:
/dev/xvda1 Partition
/dev/xvdb1 Partition
cdrom:
/dev/sr0 QEMU DVD-ROM
usb controller:
Qumranet Qemu virtual machine
bios:
BIOS
bridge:
Qumranet Qemu virtual machine
Qumranet Qemu virtual machine
Qumranet Qemu virtual machine
hub:
Linux 2.6.32-279.el6.x86_64 uhci_hcd UHCI Host Controller
memory:
Main Memory
unknown:
FPU
DMA controller
PIC
Timer
Keyboard controller
XenSource Xen Platform Device
[root@devops tmp]#
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
[root@devops tmp]# hwinfo -short
oops: don't know what to do with "short"
[root@devops tmp]# hwinfo --short
cpu:
Intel(R) Xeon(R) CPU E5-2430 0 @ 2.20GHz, 2194 MHz
keyboard:
/dev/input/event3 AT Translated Set 2 keyboard
/dev/ttyS0 serial console
mouse:
/dev/input/mice Adomax QEMU USB Tablet
/dev/input/mice Macintosh mouse button emulation
/dev/input/mice ImExPS/2 Generic Explorer Mouse
graphics card:
Cirrus Logic GD 5446
storage:
Intel 82371SB PIIX3 IDE [Natoma/Triton II]
Xen Virtual Storage 0
Xen Virtual Storage 1
Xen Virtual Storage 2
network:
eth0 Xen Virtual Ethernet Card 0
eth1 Xen Virtual Ethernet Card 1
network interface:
lo Loopback network interface
eth0 Ethernet network interface
eth1 Ethernet network interface
disk:
/dev/xvda Disk
/dev/xvdb Disk
partition:
/dev/xvda1 Partition
/dev/xvdb1 Partition
cdrom:
/dev/sr0 QEMU DVD-ROM
usb controller:
Qumranet Qemu virtual machine
bios:
BIOS
bridge:
Qumranet Qemu virtual machine
Qumranet Qemu virtual machine
Qumranet Qemu virtual machine
hub:
Linux 2.6.32-279.el6.x86_64 uhci_hcd UHCI Host Controller
memory:
Main Memory
unknown:
FPU
DMA controller
PIC
Timer
Keyboard controller
XenSource Xen Platform Device
[root@devops tmp]#
|
4. lspci
lsppci命令可列出PCI总线的信息以及连接到PCI总线上的设备信息,比如VGA适配器、SATA控制器、其他模块等等。lspci工具是pciutils包的一部分,所以在安装lspci之前,你需要安装pciutils包。
安装pciutils包使用下面的命令:
|
1
|
#yum install pciutils
|
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package pciutils.x86_64 0:3.1.10-2.el6 will be installed
--> Processing Dependency: pciutils-libs = 3.1.10-2.el6 for package: pciutils-3.1.10-2.el6.x86_64
--> Running transaction check
---> Package pciutils-libs.x86_64 0:3.1.4-11.el6 will be updated
---> Package pciutils-libs.x86_64 0:3.1.10-2.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
Installing:
pciutils x86_64 3.1.10-2.el6
85 k
Updating for dependencies:
pciutils-libs x86_64 3.1.10-2.el6
34 k
.....
Dependency Updated:
pciutils-libs.x86_64 0:3.1.10-2.el6
Complete!
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
[root@devops tmp]# yum install pciutils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package pciutils.x86_64 0:3.1.10-2.el6 will be installed
--> Processing Dependency: pciutils-libs = 3.1.10-2.el6 for package: pciutils-3.1.10-2.el6.x86_64
--> Running transaction check
---> Package pciutils-libs.x86_64 0:3.1.4-11.el6 will be updated
---> Package pciutils-libs.x86_64 0:3.1.10-2.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
Installing:
pciutils x86_64 3.1.10-2.el6
85 k
Updating for dependencies:
pciutils-libs x86_64 3.1.10-2.el6
34 k
.....
Dependency Updated:
pciutils-libs.x86_64 0:3.1.10-2.el6
Complete!
|
示例:
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01)
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 01)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Unassigned class [ff80]: XenSource, Inc. Xen Platform Device (rev 01)
[root@devops tmp]#
|
1
2
3
4
5
6
7
8
9
|
[root@devops tmp]# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.2 USB controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01)
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 01)
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Unassigned class [ff80]: XenSource, Inc. Xen Platform Device (rev 01)
[root@devops tmp]#
|
5. lsusb-列出USB总线信息
这个命令可列出USB控制器的设备信息。
lsusb工具是usbutils包的一部分,所以你需要按照如下命令安装:
|
1
|
#yum install usbutils
|
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package usbutils.x86_64 0:003-4.el6 will be installed
--> Processing Dependency: libusb-1.0.so.0()(64bit) for package: usbutils-003-4.el6.x86_64
--> Running transaction check
---> Package libusb1.x86_64 0:1.0.9-0.6.rc1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================
============
Package Arch Version
Size
=======================================================
============
Installing:
usbutils x86_64 003-4.el6
71 k
Installing for dependencies:
libusb1 x86_64 1.0.9-0.6.rc1.el6
80 k
Transaction Summary
================================================================
============
Install 2 Package(s)
Total download size: 152 k
Installed size: 377 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): libusb1-1.0.9-0.6.rc1.el6.x86_64.rpm
00:00
(2/2): usbutils-003-4.el6.x86_64.rpm
00:00
--------------------------------------------------------
------------
Total
00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libusb1-1.0.9-0.6.rc1.el6.x86_64
1/2
Installing : usbutils-003-4.el6.x86_64
2/2
Verifying : usbutils-003-4.el6.x86_64
1/2
Verifying : libusb1-1.0.9-0.6.rc1.el6.x86_64
2/2
Installed:
usbutils.x86_64 0:003-4.el6
Dependency Installed:
libusb1.x86_64 0:1.0.9-0.6.rc1.el6
Complete!
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
[root@devops tmp]# yum install usbutils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package usbutils.x86_64 0:003-4.el6 will be installed
--> Processing Dependency: libusb-1.0.so.0()(64bit) for package: usbutils-003-4.el6.x86_64
--> Running transaction check
---> Package libusb1.x86_64 0:1.0.9-0.6.rc1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================
============
Package Arch Version
Size
=======================================================
============
Installing:
usbutils x86_64 003-4.el6
71 k
Installing for dependencies:
libusb1 x86_64 1.0.9-0.6.rc1.el6
80 k
Transaction Summary
================================================================
============
Install 2 Package(s)
Total download size: 152 k
Installed size: 377 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): libusb1-1.0.9-0.6.rc1.el6.x86_64.rpm
00:00
(2/2): usbutils-003-4.el6.x86_64.rpm
00:00
--------------------------------------------------------
------------
Total
00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libusb1-1.0.9-0.6.rc1.el6.x86_64
1/2
Installing : usbutils-003-4.el6.x86_64
2/2
Verifying : usbutils-003-4.el6.x86_64
1/2
Verifying : libusb1-1.0.9-0.6.rc1.el6.x86_64
2/2
Installed:
usbutils.x86_64 0:003-4.el6
Dependency Installed:
libusb1.x86_64 0:1.0.9-0.6.rc1.el6
Complete!
|
示例:
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
[root@devops tmp]#
|
1
2
3
4
|
[root@devops tmp]# lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
[root@devops tmp]#
|
6. lsblk-列出块设备的信息
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 20G 0 disk
└─xvda1 202:1 0 20G 0 part /
xvdb 202:16 0 10G 0 disk
└─xvdb1 202:17 0 10G 0 part /alidata
sr0 11:0 1 362K 0 rom
|
1
2
3
4
5
6
7
|
[root@devops tmp]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 20G 0 disk
└─xvda1 202:1 0 20G 0 part /
xvdb 202:16 0 10G 0 disk
└─xvdb1 202:17 0 10G 0 part /alidata
sr0 11:0 1 362K 0 rom
|
7. lsscsi-列出SCSI的设备信息
列出SCSI/SDAT设备的信息,比如硬盘驱动器、光盘驱动器。
[1:0:0:0] cd/dvd QEMU QEMU DVD-ROM 0.10 /dev/sr0
[root@devops tmp]#
|
1
2
3
|
[root@devops tmp]# lsscsi
[1:0:0:0] cd/dvd QEMU QEMU DVD-ROM 0.10 /dev/sr0
[root@devops tmp]#
|
完毕!Enjoy this!
检查和收集 Linux 硬件信息的 7 个命令的更多相关文章
- Linux硬件信息命令大全
硬件信息 在linux系统中,有很多命令可以用于查询主机的硬件信息,有些命令仅仅针对于特定的硬件部件,比如cpu,内存等,而有些命令可以查询很多的硬件信息. 这篇帖子简单地带大家了解一下最常用的查询各 ...
- Linux硬件信息查询命令
系统 uname -a # 查看内核/操作系统/CPU信息 Linux hostname 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 ...
- 查看linux硬件信息
more /proc/cpuinfo more /proc/meminfo more /proc/*info lspci 查看主板信息等cat /proc/cpuinfo CPU信息cat /proc ...
- Linux硬件信息查看
more /proc/cpuinfo more /proc/meminfo more /proc/*info lspci 查看主板信息等cat /proc/cpuinfo CPU信息cat /proc ...
- Linux 硬件信息命令
# 总核数 = 物理CPU个数 X 每颗物理CPU的核数 # 总逻辑CPU数 = 物理CPU个数 X 每颗物理CPU的核数 X 超线程数 # 查看物理CPU个数cat /proc/cpuinfo| g ...
- linux 硬件信息
1. 查看物理CPU的个数 #cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l 2. 查看逻辑CPU的个数 #cat / ...
- 10 个用于收集硬件信息的 Linux 命令
知道自己的Linux系统运行在什么样的硬件组件上总是好的,因为如果涉及到在系统上安装软件包和驱动程序的话,这将有助于你处理兼容性问题. 因此,下面我们将给出一些非常有用的命令,它们可以帮助你提取你的L ...
- linux查看硬件信息的命令(图文)
发布:脚本学堂/Linux命令 编辑:JB02 2013-12-23 21:48:18 [大 中 小] 转自:http://www.jbxue.com/LINUXjishu/14996.htm ...
- linux查看硬件信息的方法
目前会Linux的人不少,但是精通的不多,怎样才能做一个符合企业需求的Linux人才,首先要有良好的Linux基础知识.本文为你讲解Linux的知识,今天所讲的是 Linux硬件信息怎样查看,希望你能 ...
随机推荐
- P1697: [Usaco2007 Feb]Cow Sorting牛排序
这是一道置换群的裸题=-=,先拿来试试手对着打,以后应该会更加熟练吧! ; var n,i,j,maxx,minx,now,len,cursum,tmin,sum:longint; p:array[. ...
- NSArray的排序
1.自定义方法排序: NSArray *array = [NSArray arrayWithObjects:", nil]; NSArray *array2 = [array sortedA ...
- java中直接打印对象
java中直接打印对象,会调用对象.toString()方法.如果没有重写toString()方法会输出"类名+@+hasCode"值,hasCode是一个十六进制数 //没有重写 ...
- My97DatePicker控制开始时间和结束时间区间
开始时间: <input type="text" placeholder=" -请选择- " id="kssj" name=" ...
- 低功耗(LPS)VLSI 电路设计中的一些注意事项
1. Non-Retention RAM/Register: 如果使用的RAM/Register本身在Power-Down状态下不可以保存自身的状态,那么一定要保证它们在power-up的时候会进行r ...
- python 可变参数
原文地址:http://docs.pythontab.com/python/python3.4/controlflow.html#tut-functions 一个最不常用的选择是可以让函数调用可变个数 ...
- PKUSC滚粗记
本来想考得这么烂还是别写了,后来想想毕竟是我高中难得的一次经历,靠脑子记的话我这脑残患者将来肯定会忘了啊……QwQ 好像跟我一样用这个题目的神犇都签了一本QwQ Day 0 来的路上我校其他三位OIe ...
- Matlab求范数
对 p = 2,这称为弗罗贝尼乌斯范数(Frobenius norm)或希尔伯特-施密特范数( Hilbert–Schmidt norm),不过后面这个术语通常只用于希尔伯特空间.这个范数可用不同的方 ...
- 浅析Java反射机制
目前,在项目中使用Java反射机制(除Spring框架)的地方不多,但为后续准备,简单将最近的反射体会总结如下: 1. 按光学中的反射,可以将java中的反射理解为“镜像”.有以下用途: Java反射 ...
- Linux 搭建SVN 服务器(转)
一. SVN 简介 Subversion(SVN) 是一个开源的版本控制系統, 也就是说 Subversion 管理着随时间改变的数据. 这些数据放置在一个中央资料档案库 (repository) 中 ...