linux查看机器配置命令,linux 下查看机器配置的几个命令

查看硬盘信息:dmesg |

grep hd

username@node01:~> dmesg|grep

hd

activating NMI Watchdog ... done.

testing NMI watchdog ... OK.

SCSI device sda: 286748000 512-byte hdwr sectors

(146815 MB)

SCSI device sda: 286748000 512-byte hdwr sectors

(146815 MB)

SCSI device sdb: 286748000 512-byte hdwr sectors

(146815 MB)

SCSI device sdb: 286748000 512-byte hdwr sectors

(146815 MB)

***********************************************************************

查看硬盘使用情况: df -h

username@node01:~> df -h

Filesystem Size Used Avail Use% Mounted on

/dev/sda1 9.9G 1.2G 8.2G 13% /

udev 3.9G 132K 3.9G 1% /dev

/dev/sda2 9.9G 153M 9.2G 2% /boot

/dev/sda5 50G 41G 6.0G 88% /home

/dev/sdb3 20G 129M 19G 1% /local

/dev/sdb2 20G 6.2G 13G 33% /opt

/dev/sdb5 46G 39G 5.3G 88% /srv

/dev/sda6 9.9G 139M 9.3G 2% /tmp

/dev/sdb1 50G 17G 31G 35% /usr

/dev/sda7 24G 402M 23G 2% /var

shm 29G 68K 29G 1%

/dev/shm

***********************************************************************

查看CPU信息: dmesg|grep CPU

username@node01:~> dmesg|grep

CPU

SMP: Allowing 8 CPUs, 0 hotplug CPUs

Initializing CPU#0

CPU: L1 I cache: 32K, L1 D

cache: 32K

CPU: L2 cache: 4096K

CPU: Physical Processor ID: 0

CPU: Processor Core ID: 0

CPU0: Thermal monitoring enabled (TM1)

Initializing CPU#1

CPU: L1 I cache: 32K, L1 D

cache: 32K

CPU: L2 cache: 4096K

CPU: Physical Processor ID: 1

CPU: Processor Core ID: 0

CPU1: Thermal monitoring enabled (TM1)

Intel(R) Xeon(R)

CPU X5365 @ 3.00GHz stepping 0b

Initializing CPU#2

CPU: L1 I cache: 32K, L1 D

cache: 32K

CPU: L2 cache: 4096K

CPU: Physical Processor ID: 0

CPU: Processor Core ID: 1

CPU2: Thermal monitoring enabled (TM1)

Intel(R) Xeon(R)

CPU X5365 @ 3.00GHz stepping 0b

Initializing CPU#3

CPU: L1 I cache: 32K, L1 D

cache: 32K

CPU: L2 cache: 4096K

CPU: Physical Processor ID: 0

CPU: Processor Core ID: 2

CPU3: Thermal monitoring enabled (TM1)

Intel(R) Xeon(R)

CPU X5365 @ 3.00GHz stepping 0b

Initializing CPU#4

CPU: L1 I cache: 32K, L1 D

cache: 32K

CPU: L2 cache: 4096K

CPU: Physical Processor ID: 0

CPU: Processor Core ID: 3

CPU4: Thermal monitoring enabled (TM1)

Intel(R) Xeon(R)

CPU X5365 @ 3.00GHz stepping 0b

Initializing CPU#5

CPU: L1 I cache: 32K, L1 D

cache: 32K

CPU: L2 cache: 4096K

CPU: Physical Processor ID: 1

CPU: Processor Core ID: 1

CPU5: Thermal monitoring enabled (TM1)

Intel(R) Xeon(R)

CPU X5365 @ 3.00GHz stepping 0b

Initializing CPU#6

CPU: L1 I cache: 32K, L1 D

cache: 32K

CPU: L2 cache: 4096K

CPU: Physical Processor ID: 1

CPU: Processor Core ID: 2

CPU6: Thermal monitoring enabled (TM1)

Intel(R) Xeon(R)

CPU X5365 @ 3.00GHz stepping 0b

Initializing CPU#7

CPU: L1 I cache: 32K, L1 D

cache: 32K

CPU: L2 cache: 4096K

CPU: Physical Processor ID: 1

CPU: Processor Core ID: 3

CPU7: Thermal monitoring enabled (TM1)

Intel(R) Xeon(R)

CPU X5365 @ 3.00GHz stepping 0b

Brought up 8 CPUs

ACPI: Processor [CPU0] (supports 8 throttling

states)

ACPI: Processor [CPU1] (supports 8 throttling

states)

ACPI: Processor [CPU2] (supports 8 throttling

states)

ACPI: Processor [CPU3] (supports 8 throttling

states)

ACPI: Processor [CPU4] (supports 8 throttling

states)

ACPI: Processor [CPU5] (supports 8 throttling

states)

ACPI: Processor [CPU6] (supports 8 throttling

states)

ACPI: Processor [CPU7] (supports 8 throttling

states)

***********************************************************************

查看CPU

ctliu@node01:~> dmesg|grep

proc

time.c: Detected 3000.207 MHz processor.

Booting processor 1/8 APIC 0x4

Booting processor 2/8 APIC 0x1

Booting processor 3/8 APIC 0x2

Booting processor 4/8 APIC 0x3

Booting processor 5/8 APIC 0x5

Booting processor 6/8 APIC 0x6

Booting processor 7/8 APIC 0x7

*********************************************************************

查看内存:free

username@node01:~> free

total used free shared buffers cached

Mem: 8172684 2625624 5547060 0 468096 1641356

-/+ buffers/cache: 516172 7656512

Swap: 33559776 580 33559196

*********************************************************************************

查看操作系统版本 uname -a

username@node01:~> uname -a

Linux node01 2.6.16.46-0.12-smp #1 SMP Thu May 17

14:00:09 UTC 2007 x86_64 x86_64

x86_64 GNU/Linux

**************************************************************************************************************

查看整个文件夹大小 du -h --max-depth=1 folder/*

username@node01:~> du -h

--max-depth=1 vasp/*

40M vasp/test/relaxation

40M vasp/test

***********************************************************************************************************************

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值