Informations Système sous Linux
Il existe beaucoup de commandes différentes pour avoir des informations sur son système avec Linux.
Informations sur le matériel
inxi
Inxi permet d'avoir très simplement beaucoup d'informations, surtout avec -F
<source> ~ ➤ inxi -F System: Host: ulysses Kernel: 5.11.6-1-MANJARO x86_64 bits: 64 Desktop: GNOME 3.38.4 Distro: Manjaro Linux Machine: Type: Desktop Mobo: Gigabyte model: B550I AORUS PRO AX v: x.x serial: <superuser required>
UEFI: American Megatrends LLC. v: F13a date: 01/27/2021
CPU: Info: 6-Core model: AMD Ryzen 5 5600X bits: 64 type: MT MCP cache: L2: 3 MiB
Speed: 3884 MHz min/max: 2200/3700 MHz Core speeds (MHz): 1: 3884 2: 2851 3: 2525 4: 2870 5: 3307 6: 2757 7: 3181 8: 2862 9: 3233 10: 2798 11: 2705 12: 2510
Graphics: Device-1: NVIDIA GP104 [GeForce GTX 1070] driver: nvidia v: 460.56
Display: x11 server: X.Org 1.20.10 driver: loaded: nvidia resolution: 1: 1024x1280 2: 1920x1080 3: 2560x1440 OpenGL: renderer: GeForce GTX 1070/PCIe/SSE2 v: 4.6.0 NVIDIA 460.56
Audio: Device-1: NVIDIA GP104 High Definition Audio driver: snd_hda_intel
Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio driver: snd_hda_intel Device-3: Creative SB Omni Surround 5.1 type: USB driver: hid-generic,snd-usb-audio,usbhid Sound Server-1: ALSA v: k5.11.6-1-MANJARO running: yes Sound Server-2: PulseAudio v: 14.2 running: yes
Network: Device-1: Realtek RTL8125 2.5GbE driver: r8169
IF: eno1 state: up speed: 1000 Mbps duplex: full mac: 18:c0:4d:39:85:21 Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi IF: wlp5s0 state: down mac: aa:98:6a:24:6a:90
Bluetooth: Device-1: Intel AX200 Bluetooth type: USB driver: btusb
Report: ID: hci0 state: up address: 8C:C6:81:9D:4C:6A
Drives: Local Storage: total: 3.62 TiB used: 949.38 GiB (25.6%)
ID-1: /dev/nvme0n1 vendor: Crucial model: CT500P5SSD8 size: 465.76 GiB ID-2: /dev/sda vendor: Seagate model: ST2000DM001-1ER164 size: 1.82 TiB ID-3: /dev/sdb vendor: Toshiba model: DT01ACA100 size: 931.51 GiB ID-4: /dev/sdc vendor: Crucial model: CT480BX500SSD1 size: 447.13 GiB
Partition: ID-1: / size: 448.5 GiB used: 189.04 GiB (42.1%) fs: ext4 dev: /dev/nvme0n1p2
ID-2: /boot/efi size: 299.4 MiB used: 25.6 MiB (8.5%) fs: vfat dev: /dev/nvme0n1p1
Swap: ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) dev: /dev/nvme0n1p3 Sensors: System Temperatures: cpu: 42.4 C mobo: N/A gpu: nvidia temp: 54 C
Fan Speeds (RPM): N/A gpu: nvidia fan: 35%
Info: Processes: 315 Uptime: 12m Memory: 31.36 GiB used: 3.11 GiB (9.9%) Shell: Zsh inxi: 3.3.03 </source>
lshw
lshw (pour LiSt HardWare) permet également d'avoir beaucoup d'informations, mais est moins lisible. Il suffit de le lancer en root.
<source> ~ ➤ sudo lshw [sudo] Mot de passe de justine : ulysses
description: Ordinateur de Bureau produit: B550I AORUS PRO AX (Default string) fabriquant: Gigabyte Technology Co., Ltd. version: Default string numéro de série: Default string bits: 64 bits fonctionnalités: smbios-3.3.0 dmi-3.3.0 smp vsyscall32 configuration: boot=normal chassis=desktop family=B550 MB sku=Default string uuid=1802C003-4D04-3905-8506-210700080009 *-core description: Carte mère produit: B550I AORUS PRO AX fabriquant: Gigabyte Technology Co., Ltd. identifiant matériel: 0 version: x.x numéro de série: Default string emplacement: Default string *-firmware
[...] </source>
Sur les disques : lsblk
Pour List block devices.
<source> ~ ➤ sudo lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 32,3M 1 loop /var/lib/snapd/snap/snapd/11402 loop1 7:1 0 55,5M 1 loop /var/lib/snapd/snap/core18/1988 loop2 7:2 0 65,3M 1 loop /var/lib/snapd/snap/powershell/160 loop3 7:3 0 32,3M 1 loop /var/lib/snapd/snap/snapd/11107 loop4 7:4 0 65,3M 1 loop /var/lib/snapd/snap/powershell/158 sda 8:0 0 1,8T 0 disk └─sda2 8:2 0 1,8T 0 part /home/justine/Donnees/TheVault sdb 8:16 0 931,5G 0 disk └─sdb1 8:17 0 931,5G 0 part /home/justine/Donnees/TheOtherVault sdc 8:32 0 447,1G 0 disk ├─sdc1 8:33 0 16M 0 part └─sdc2 8:34 0 447,1G 0 part nvme0n1 259:0 0 465,8G 0 disk ├─nvme0n1p1 259:1 0 300M 0 part /boot/efi ├─nvme0n1p2 259:2 0 456,7G 0 part / └─nvme0n1p3 259:3 0 8,8G 0 part [SWAP] </source>
Sur les cpu : lscpu
Même principe. <source> ~ ➤ lscpu Architecture : x86_64 Mode(s) opératoire(s) des processeurs : 32-bit, 64-bit Boutisme : Little Endian Tailles des adresses: 48 bits physical, 48 bits virtual Processeur(s) : 12 Liste de processeur(s) en ligne : 0-11 Thread(s) par cœur : 2 Cœur(s) par socket : 6 Socket(s) : 1 Nœud(s) NUMA : 1 Identifiant constructeur : AuthenticAMD Famille de processeur : 25 Modèle : 33 Nom de modèle : AMD Ryzen 5 5600X 6-Core Processor Révision : 0 [...] </source>