Articles

9 유용한 명령을 CPU 정보를 리눅스에서

이전 문서에서,우리는 함께 10 유용한 명령을 수집 시스템 및 하드웨어 정보에서 리눅스. 이 가이드에서는 CPU/프로세서로 범위를 좁히고 컴퓨터 CPU 에 대한 자세한 정보를 추출하는 다양한 방법을 보여줍니다.

그냥 당신에게 개관을,우리는 것이 쿼리와 같은 정보를 CPU 아키텍처,vendor_id,모델,모델명,CPU 코어의 개수,속도 각각의 중핵 등에 관한 많은 기능을 제공합니다.,
본질적으로/proc/cpuinfo 에는이 모든 정보가 포함되어 있으며 다른 모든 명령/유틸리티는이 파일에서 출력을 가져옵니다.

그렇게 말하면서,아래는 Linux CPU 에 대한 정보를 얻기위한 9 개의 명령입니다.,

얻을 CPU 정보를 사용하여 cat 명령

단순히 정보를 보고 시스템의 CPU 에 의해 내용을 보는/proc/cpuinfo 파일의 도움으로 고양이 다음과 같이 명령:

$ cat /proc/cpuinfo
Linux CPU 정보
processor: 0vendor_id: GenuineIntelcpu family: 6model: 69model name: Intel(R) Core(TM) i5-4210U CPU @ 1.70GHzstepping: 1microcode: 0x1ccpu MHz: 1700.062cache size: 3072 KBphysical id: 0siblings: 4core id: 0cpu cores: 2apicid: 0initial apicid: 0fpu: yesfpu_exception: yescpuid level: 13wp: yesflags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln ptsbugs:bogomips: 4788.92clflush size: 64cache_alignment: 64address sizes: 39 bits physical, 48 bits virtualpower management:......

조금 특정, 당신을 채용할 수 있 grep 명령 CLI 도구로 검색하기위한 일반 텍스트 데이터에 대한 라인과 일치하는 정기적인 표현입니다.,sted 읽기:어떻게 사용하는’고양이’와’탕’명령으로 리눅스에서 예

lscpu 명령을 보여줍니다–CPU 아키텍처 정보

명령 lscpu 인쇄 CPU 아키텍처에서 정보를 수 있게 도와줍며/proc/cpuinfo 다음과 같습니다:

$ lscpu
Linux CPU 건축
Architecture: x86_64CPU op-mode(s): 32-bit, 64-bitByte Order: Little EndianCPU(s): 4On-line CPU(s) list: 0-3Thread(s) per core: 2Core(s) per socket: 2Socket(s): 1NUMA node(s): 1Vendor ID: GenuineIntelCPU family: 6Model: 69Model name: Intel(R) Core(TM) i5-4210U CPU @ 1.70GHzStepping: 1CPU MHz: 1303.687CPU max MHz: 2700.0000CPU min MHz: 800.0000BogoMIPS: 4788.92Virtualization: VT-xL1d cache: 32KL1i cache: 32KL2 cache: 256KL3 cache: 3072KNUMA node0 CPU(s): 0-3Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts

cpuid 명령을 보여줍니다–86CPU

명령 cpuid 덤프에 대한 완전한 정보를 CPU(s)에서 수집 CPUID 명령하고,또한 발견의 정확한 모델 86CPU(s)에서는 정보입니다.,

그것을 실행하기 전에 설치해야합니다.

$ sudo apt install cpuid #Debian/Ubuntu systems$ sudo yum install cpuid#RHEL/CentOS systems $ sudo dnf install cpuid#Fedora 22+ 

일단 설치되면 cpuid 를 실행하여 x86CPU 에 관한 정보를 수집하십시오.

$ cpuid
쇼 86CPU 정보

dmidecode 명령을 보여줍니다–리눅스 하드웨어 정보

dmidecode 도구를 검색하는 하드웨어 정보의 리눅스 시스템입니다. 그것은 쉽게 검색을 위해 사람이 읽을 수있는 형식으로 컴퓨터의 DMI(일명 SMBIOS)테이블 내용을 덤프합니다., SMBIOS 사양을 정의하는 다양한 DMI 유형에 대한 CPU 사용하”프로세서는 다음과 같이”

$ sudo dmidecode --type processor
여 리눅스 하드웨어 정보
# dmidecode 3.0Getting SMBIOS data from sysfs.SMBIOS 2.7 present.Handle 0x0004, DMI type 4, 42 bytesProcessor InformationSocket Designation: U3E1Type: Central ProcessorFamily: Core i5Manufacturer: Intel(R) CorporationID: 51 06 04 00 FF FB EB BFSignature: Type 0, Family 6, Model 69, Stepping 1Flags:FPU (Floating-point unit on-chip)VME (Virtual mode extension)DE (Debugging extension)PSE (Page size extension)TSC (Time stamp counter)MSR (Model specific registers)PAE (Physical address extension)MCE (Machine check exception)CX8 (CMPXCHG8 instruction supported)APIC (On-chip APIC hardware supported)SEP (Fast system call)MTRR (Memory type range registers)PGE (Page global enable)MCA (Machine check architecture).....

Inxi 도구–여 리눅스 시스템 정보

Inxi 한 강력한 명령은 온라인 시스템 정보를 스크립트 모두를위한 것입 콘솔 IRC(릴레이 인터넷 채팅). 이를 사용하여 하드웨어 정보를 즉시 검색할 수 있습니다.,

설치할 수 있습니다.

$ sudo apt install inxi #Debian/Ubuntu systems$ sudo yum install inxi#RHEL/CentOS systems $ sudo dnf install inxi#Fedora 22+ 

를 표시하는 완벽한 CPU 정보를 포함하여,당 CPU 클럭 속도와 CPU 최대 속도(가능할 경우),사용하는-C플래그는 다음과 같다:

$ inxi -C
인쇄 리눅스 시스템 정보
CPU: Dual core Intel Core i5-4210U (-HT-MCP-) cache: 3072 KB clock speeds: max: 2700 MHz 1: 1958 MHz 2: 1993 MHz 3: 1775 MHz 4: 1714 MHz

lshw 도구–목록 하드웨어 구성

lshw 한 최소한의 도구에 대한 수집에 대한 깊이있는 정보를 하드웨어 컴퓨터 구성.,은 경우:

$ sudo lshw -C CPU
인쇄 리눅스 하드웨어 구성
*-cpu description: CPU product: Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz vendor: Intel Corp. physical id: 4 bus info: cpu@0 version: Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz serial: To Be Filled By O.E.M. slot: U3E1 size: 2626MHz capacity: 2700MHz width: 64 bits clock: 100MHz capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts cpufreq configuration: cores=2 enabledcores=2 threads=4

hardinfo 보여줍니다–하드웨어 정보 GTK+창

hardinfo 표시드웨어 정보를 GTK+창에서,당신은 다음과 같이 설치할 수 있습니다:

$ sudo apt install hardinfo #Debian/Ubuntu systems$ sudo yum install hardinfo#RHEL/CentOS systems $ sudo dnf install hardinfo#Fedora 22+ 

일단 당신이 그것을 설치 유형:

$ hardinfo 
리눅스 시스템 정보

이것은 또한을 생성할 수 있는 시스템 하드웨어 정보 보고서를 클릭하여 생성”보고서”버튼을 누릅니다., 아래 인터페이스에서”생성”을 클릭하여 진행하십시오. 생성될 하드웨어 정보 범주를 선택할 수 있습니다.

생성 시스템에 정보를 보고

일단 당신이 생성한 보고서는 html 형식으로,당신은 그것을 볼 수 있는 웹 브라우저에서 아래와 같습니다.,

Linux System Detailed Information

hwinfo – Shows Present Hardware Info

hwinfo is used to extract info about the hardware present in a Linux system.,mmand 사용하여 처리 장치에 존재하는 컴퓨터:

$ nproc

에 대한 추가적인 사용 정보와 옵션을 읽을 통해 남자 페이지의 같은 이러한 명령:

$ man commandname

또한,체크아웃:

  1. Cpustat–모니터링 CPU 사용률에 의해 실행하는 프로세스에서의 리눅
  2. CoreFreq–강력한 CPU 모니터링 도구는 리눅스 시스템에 대한
  3. 찾기 상 프로세스를 실행하여 가장 높은 CPU 와 메모리 사용량에서 리눅
  4. 는 방법을 부과하는 높은 CPU 부하며 스트레스 테스트에서 리눅스를 사용하’스트레스 ng’도구

는 지금!, 아래의 피드백 양식을 통해 Linux 에서 CPU 정보를 추출하는 추가 방법을 우리와 공유 할 수 있습니다.피>