日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

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

發布時間:2024/9/27 linux 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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

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

總結

以上是生活随笔為你收集整理的linux查看机器配置命令,linux 下查看机器配置的几个命令的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。