lunes, 2 de noviembre de 2020

¿Cómo saber que hardware y versión de distribución GNU / Linux tengo? (Actualizado)

     Ante todo un cordial Saludo.

     Con esta lista de comandos podremos saber que hardware instalado instalado en nuestra pc, no solo eso también versión de GNU / Linux que usamos y la versión de distribución GNU / Linux.

  • Información del kernel linux instalado, nombre de host y la arquitetura del software.

Comando:
uname -a
Salida tras ejecución:
Linux equipo 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-1 (2016-03-06) x86_64 GNU/Linux

  • Información de la distribución GNU / Linux instalada y su versión.
 
Comando:
cat /etc/issue
Salida tras ejecución:
Debian GNU/Linux 8 \n \l

  • Información de la memoria RAM fisica instalada en el computador.

Comando:
cat /proc/meminfo
Salida tras ejecución:
MemTotal:        6124664 kB
MemFree:         3966872 kB
MemAvailable:    4902276 kB
Buffers:           60356 kB
Cached:          1029496 kB
SwapCached:            0 kB
Active:          1369520 kB
Inactive:         581148 kB
Active(anon):     861660 kB
Inactive(anon):    21868 kB
Active(file):     507860 kB
Inactive(file):   559280 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       2399228 kB
SwapFree:        2399228 kB
Dirty:                44 kB
Writeback:             0 kB
AnonPages:        860844 kB
Mapped:           307128 kB
Shmem:             22716 kB
Slab:             103664 kB
SReclaimable:      74380 kB
SUnreclaim:        29284 kB
KernelStack:        5776 kB
PageTables:        32908 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     5461560 kB                                                    
Committed_AS:    4496576 kB
VmallocTotal:34359738367 kB
VmallocUsed:      118688 kB
VmallocChunk:34359616508 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      134656 kB
DirectMap2M:     6156288 kB


  • Información del CPU instalado.
Comando:
cat /proc/cpuinfo
Nota: Tambien se puede ejecutar lscpu para obtener una información un poco más resumida
Salida tras ejecución:
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Quad CPU    Q8400  @ 2.66GHz
stepping        : 10
microcode       : 0xa07
cpu MHz         : 2003.000
cache size      : 2048 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
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 lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm dtherm tpr_shadow vnmi flexpriority
bogomips        : 5319.52
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Quad CPU    Q8400  @ 2.66GHz
stepping        : 10
microcode       : 0xa07
cpu MHz         : 2003.000
cache size      : 2048 KB
physical id     : 0
siblings        : 4
core id         : 1
cpu cores       : 4
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
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 lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm dtherm tpr_shadow vnmi flexpriority
bogomips        : 5319.52
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 2
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Quad CPU    Q8400  @ 2.66GHz
stepping        : 10
microcode       : 0xa07
cpu MHz         : 2003.000
cache size      : 2048 KB
physical id     : 0
siblings        : 4
core id         : 2
cpu cores       : 4
apicid          : 2
initial apicid  : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
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 lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm dtherm tpr_shadow vnmi flexpriority
bogomips        : 5319.52
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Quad CPU    Q8400  @ 2.66GHz
stepping        : 10
microcode       : 0xa07
cpu MHz         : 2003.000
cache size      : 2048 KB
physical id     : 0
siblings        : 4
core id         : 3
cpu cores       : 4
apicid          : 3
initial apicid  : 3
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
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 lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm dtherm tpr_shadow vnmi flexpriority
bogomips        : 5319.52
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

  • Información de hardware conectado internamente sea por slot PCI o PCI-e.

Comando:
lspci
Salida tras ejecución:
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03)
00:01.0 PCI bridge: Intel Corporation 4 Series Chipset PCI Express Root Port (rev 03)
00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 2 (rev 01)
00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 01)
00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 01)
00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 01)
00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 01)
00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation NM10/ICH7 Family SATA Controller [IDE mode] (rev 01)
00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 01)
01:00.0 Ethernet controller: Qualcomm Atheros AR8152 v2.0 Fast Ethernet (rev c1)
04:00.0 VGA compatible controller: NVIDIA Corporation GF119 [GeForce GT 520] (rev a1)
04:00.1 Audio device: NVIDIA Corporation GF119 HDMI Audio Controller (rev a1)


  • Información de hardware conectado por puerto usb.

Comando:
lsusb
Salida tras ejecución:
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
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:0001 Linux Foundation 1.1 root hub

  • También podemos una lista de hardware conectado incluyendo unidades de disco y sus particiones.

Comando:
ls /dev
Salida tras ejecución:
autofs           loop-control        sda5      tty22  tty47  uinput
block            lp0                 sda6      tty23  tty48  urandom
bsg              mapper              sg0       tty24  tty49  vcs
btrfs-control    mcelog              sg1       tty25  tty5   vcs1
bus              mem                 shm       tty26  tty50  vcs2
cdrom            mqueue              snapshot  tty27  tty51  vcs3
cdrw             net                 snd       tty28  tty52  vcs4
char             network_latency     sr0       tty29  tty53  vcs5
console          network_throughput  stderr    tty3   tty54  vcs6
core             null                stdin     tty30  tty55  vcs7
cpu              nvidia0             stdout    tty31  tty56  vcsa
cpu_dma_latency  nvidiactl           tty       tty32  tty57  vcsa1
cuse             parport0            tty0      tty33  tty58  vcsa2
disk             port                tty1      tty34  tty59  vcsa3
dri              ppp                 tty10     tty35  tty6   vcsa4
dvd              psaux               tty11     tty36  tty60  vcsa5
dvdrw            ptmx                tty12     tty37  tty61  vcsa6
fd               pts                 tty13     tty38  tty62  vcsa7
full             random              tty14     tty39  tty63  vfio
fuse             rfkill              tty15     tty4   tty7   vga_arbiter
hpet             rtc                 tty16     tty40  tty8   vhci
hugepages        rtc0                tty17     tty41  tty9   vhost-net
initctl          sda                 tty18     tty42  ttyS0  watchdog
input            sda1                tty19     tty43  ttyS1  watchdog0
kmsg             sda2                tty2      tty44  ttyS2  xconsole
kvm              sda3                tty20     tty45  ttyS3  zero
log              sda4                tty21     tty46  uhid


  • Infómación de las Unidades de disco conectadas y sus parciones ya sean internas o externas.

Comando:
fdisk -l
Nota: Este comando se ejecuta solo como root o con un usuario con privilegios de administrador o Super Usuario.
Salida tras ejecución:
Disco /dev/sda: 465,8 GiB, 500107862016 bytes, 976773168 sectores
Unidades: sectores de 1 * 512 = 512 bytes
Tamaño de sector (lógico/físico): 512 bytes / 512 bytes
Tamaño de E/S (mínimo/óptimo): 512 bytes / 512 bytes
Tipo de etiqueta de disco: dos
Identificador del disco: 0xb36d6313

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1            2048    206847    204800   100M  7 HPFS/NTFS/exFAT
/dev/sda2          206848 245762047 245555200 117,1G  7 HPFS/NTFS/exFAT
/dev/sda3       245762048 771971071 526209024 250,9G  7 HPFS/NTFS/exFAT
/dev/sda4       771973118 976771071 204797954  97,7G  5 Extended
/dev/sda5  *    771973120 971970559 199997440  95,4G 83 Linux
/dev/sda6       971972608 976771071   4798464   2,3G 82 Linux swap / Solaris


  • Información de la tarjeta madre instalada.

Comando:
dmidecode -t baseboard
Nota: ejecutarlo como root o super usuario.
Salida tras ejecución:

# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 2.8 present.

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
       Manufacturer: Standard
       Product Name: Standard
       Version: To be filled by O.E.M.
       Serial Number: To be filled by O.E.M.
       Asset Tag: To be filled by O.E.M.
       Features:
               Board is a hosting board
               Board is replaceable
       Location In Chassis: To be filled by O.E.M.
       Chassis Handle: 0x0003
       Type: Motherboard
       Contained Object Handles: 0

Handle 0x0025, DMI type 10, 6 bytes
On Board Device Information
       Type: Video
       Status: Enabled
       Description:    To Be Filled By O.E.M.

Handle 0x0033, DMI type 41, 11 bytes
Onboard Device
       Reference Designation:  Onboard IGD
       Type: Video
       Status: Enabled
       Type Instance: 1
       Bus Address: 0000:00:02.0

Handle 0x0034, DMI type 41, 11 bytes
Onboard Device
       Reference Designation:  Onboard LAN
       Type: Ethernet
       Status: Enabled
       Type Instance: 1
       Bus Address: 0000:00:19.0

Handle 0x0035, DMI type 41, 11 bytes
Onboard Device
       Reference Designation:  Onboard 1394
       Type: Other
       Status: Enabled
       Type Instance: 1
       Bus Address: 0000:03:1c.2


     Espero que les guste, esperen mi próxima entrada.