Dica de comandos que podemos utilizar para obter informações de nosso ambiente Linux:
Exibindo a arquitetura de seu processador:
1 2 3 4 5 |
[root@srv-centos ~]# uname -m x86_64 [root@srv-centos ~]# arch x86_64 [root@srv-centos ~]# |
Verificando a versão do seu Kernel:
1 2 3 |
[root@srv-centos ~]# uname -r 3.10.0-693.11.1.el7.x86_64 [root@srv-centos ~]# |
Obtendo informações do seu processador
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 |
[root@srv-centos ~]# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 26 model name : Intel(R) Xeon(R) CPU L5520 @ 2.27GHz stepping : 5 microcode : 25 cpu MHz : 2266.697 cache size : 8192 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 4 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : 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 rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm ida dtherm tpr_shadow vnmi flexpriority ept vpid bogomips : 4533.39 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: |
Listando dispositivos PCI:
1 2 3 4 5 6 7 |
[root@srv-centos ~]# lspci 00:00.0 Host bridge: Intel Corporation 5000X Chipset Memory Controller Hub (rev 31) 00:02.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8 Port 2-3 (rev 31) 00:03.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 3 (rev 31) 00:04.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x8 Port 4-5 (rev 31) 00:05.0 PCI bridge: Intel Corporation 5000 Series Chipset PCI Express x4 Port 5 (rev 31) ... |
Listando dispositivos USB:
1 2 3 4 5 |
[root@srv-centos ~]# lsusb Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub |
Mostrar informações do hardware:
1 2 3 4 5 6 7 8 9 10 |
[root@srv-centos ~]# dmidecode -q BIOS Information Vendor: innotek GmbH Version: VirtualBox Release Date: 12/01/2006 Address: 0xE0000 Runtime Size: 128 kB ROM Size: 128 kB Characteristics: ... |
Listar discos e suas partições:
1 2 3 4 5 6 7 |
[root@srv-centos ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 8G 0 disk ├─sda1 8:1 0 1G 0 part /boot ├─sda2 8:2 0 820M 0 part [SWAP] └─sda3 8:3 0 6.2G 0 part / sr0 11:0 1 1024M 0 rom |
Espero que gostem da dica, logo monto uma segunda parte.
[]’s 😉