Comandos para obtener información de su sistema Parte 3

1. whereis

Localiza binarios, código fuente y manuales de un comando específico. Algunas opciones son: -b (binarios), -s (código fuente), -m (manuales)

Ejemplo

$ whereis ls
ls: /usr/bin/ls /usr/share/man/man1/ls.1.gz
$ whereis -b ls
ls: /bin/ls

2. whoami

Imprime el nombre de usuario actual

Ejemplo

$ whoami
librebyte

3. w

Muestra quién está conectado al sistema

Ejemplo

$ who
09:05:48 up 17 days, 19:14,  2 users,  load average: 0.67, 0.66, 0.75
USER       TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
librebyte  :1       :1               05Mar25 ?xdm?   2days  0.01s /usr/lib/gdm3/gdm-x-session --run-script /usr/bin/gnome-session --session=gnome
librebyte  pts/1    192.168.100.21   09:05   12.00s  0.42s  0.02s -bash

4. dmidecode

dmidecode es una herramienta para volcar el contenido de la tabla DMI en un formato legible. Esta tabla contiene una descripción de los componentes de hardware del sistema, así como otra información útil como los números de serie y la revisión del BIOS. Gracias a esta tabla, se puede recuperar esta información sin tener que buscar el hardware real.

Ejemplo

$ sudo dmidecode 
# Getting SMBIOS data from sysfs.
SMBIOS 3.2.1 present.
# SMBIOS implementations newer than version 3.2.0 are not
# fully supported by this version of dmidecode.
Table at 0x8A99F000.
Handle 0x0000, DMI type 0, 26 bytes
BIOS Information
    Vendor: American Megatrends Inc.
    Version: 2417
    Release Date: 06/03/2019
    Address: 0xF0000
    Runtime Size: 64 kB
    ROM Size: 16 MB
    Characteristics:
        PCI is supported
        APM is supported
        BIOS is upgradeable
        BIOS shadowing is allowed
        Boot from CD is supported
        Selectable boot is supported
        BIOS ROM is socketed
        EDD is supported
        5.25"/1.2 MB floppy services are supported (int 13h)
        3.5"/720 kB floppy services are supported (int 13h)
        3.5"/2.88 MB floppy services are supported (int 13h)
        Print screen service is supported (int 5h)
        8042 keyboard services are supported (int 9h)
        Serial services are supported (int 14h)
        Printer services are supported (int 17h)
        ACPI is supported
        USB legacy is supported
        BIOS boot specification is supported
        Targeted content distribution is supported
        UEFI is supported
    BIOS Revision: 5.13
...

5. lspci

lspci es una utilidad para mostrar información sobre los buses PCI en el sistema y los dispositivos conectados a ellos.

Ejemplo

$ lspci 
00:00.0 Host bridge: Intel Corporation 8th Gen Core 8-core Desktop Processor Host Bridge/DRAM Registers [Coffee Lake S] (rev 0d)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Desktop 9 Series) (rev 02)
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
00:14.3 Network controller: Intel Corporation Wireless-AC 9560 [Jefferson Peak] (rev 10)
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
00:17.0 SATA controller: Intel Corporation Cannon Lake PCH SATA AHCI Controller (rev 10)
00:1b.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #17 (rev f0)
00:1c.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #1 (rev f0)
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #9 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Z390 Chipset LPC/eSPI Controller (rev 10)
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (7) I219-V (rev 10)

Video disponible en Youtube

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

This site uses Akismet to reduce spam. Learn how your comment data is processed.