Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
elearning:workbooks:centos:8:junior:l117 [2022/05/11 04:24] adminelearning:workbooks:centos:8:junior:l117 [2023/12/25 11:16] (Version actuelle) admin
Ligne 1: Ligne 1:
 ~~PDF:LANDSCAPE~~ ~~PDF:LANDSCAPE~~
  
-Version : **2022.01**+Version : **2023.01**
  
 Dernière mise-à-jour : ~~LASTMOD~~ Dernière mise-à-jour : ~~LASTMOD~~
  
 ======LCF511 - Gestion des Paramètres du matériel et les Ressources====== ======LCF511 - Gestion des Paramètres du matériel et les Ressources======
 +
 +<code>
 +[root@centos8 ~]# sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
 +[root@centos8 ~]# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
 +</code>
  
 =====Contenu du Module===== =====Contenu du Module=====
Ligne 12: Ligne 17:
     * Contenu du Module     * Contenu du Module
     * Présentation des Fichiers Spéciaux      * Présentation des Fichiers Spéciaux 
-    * LAB #1 - Commandes+    * LAB #1 - Découvrir le Matériel
       * 1.1 - La Commande lspci       * 1.1 - La Commande lspci
       * 1.2 - La Commande lsusb       * 1.2 - La Commande lsusb
-      * 1.3 - La Commande dmidecode+      * 1.3 - La Commande lsblk 
 +      * 1.4 - La Commande lsscsi 
 +      * 1.5 - La Commande lscpu 
 +      * 1.6 - La Commande lshw 
 +      * 1.7 - La Commande dmidecode 
 +      * 1.8 - La Commande smartctl 
 +      * 1.9 - Les Commandes accton et dump-acct 
 +      * 1.10 - La Commande lastcomm 
 +      * 1.11 - La Commande sa 
 +      * 1.12 - La Commande ac
     * LAB #2 - La Commande sysctl     * LAB #2 - La Commande sysctl
       * 2.1 - Répertoire /proc       * 2.1 - Répertoire /proc
Ligne 130: Ligne 144:
   * le **mineur** identifie le périphérique ou une particularité du périphérique telle une partition d'un disque.   * le **mineur** identifie le périphérique ou une particularité du périphérique telle une partition d'un disque.
  
-=====LAB #1 - Commandes=====+=====LAB #1 - Découvrir le Matériel=====
  
 ====1.1 - La Commande lspci==== ====1.1 - La Commande lspci====
Ligne 277: Ligne 291:
 </code> </code>
  
-====1.3 - La Commande dmidecode====+====1.3 - La Commande lsblk==== 
 + 
 +Cette commande vous rensigne sur les partitions des disques : 
 + 
 +<code> 
 +[root@centos8 ~]# lsblk 
 +NAME                MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT 
 +sda                   8:   0   32G  0 disk  
 +├─sda1                8:1    0    1G  0 part /boot 
 +└─sda2                8:2    0   31G  0 part  
 +  ├─cl_centos8-root 253:0    0 27.8G  0 lvm  / 
 +  └─cl_centos8-swap 253:1    0  3.2G  0 lvm  [SWAP] 
 +sdb                   8:16      4G  0 disk  
 +sdc                   8:32     64G  0 disk  
 +└─sdc1                8:33     64G  0 part /home 
 +sdd                   8:48     32G  0 disk  
 +sr0                  11:0    1 1024M  0 rom  
 + 
 +[root@centos8 ~]# lsblk -l 
 +NAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT 
 +sda               8:   0   32G  0 disk  
 +sda1              8:1    0    1G  0 part /boot 
 +sda2              8:2    0   31G  0 part  
 +sdb               8:16      4G  0 disk  
 +sdc               8:32     64G  0 disk  
 +sdc1              8:33     64G  0 part /home 
 +sdd               8:48     32G  0 disk  
 +sr0              11:0    1 1024M  0 rom   
 +cl_centos8-root 253:0    0 27.8G  0 lvm  / 
 +cl_centos8-swap 253:1    0  3.2G  0 lvm  [SWAP] 
 +</code> 
 + 
 +===Options de la commande=== 
 + 
 +Les options de cette commande sont : 
 + 
 +<code> 
 +[root@centos8 ~]# lsblk --help 
 + 
 +Usage: 
 + lsblk [options] [<device> ...] 
 + 
 +List information about block devices. 
 + 
 +Options: 
 + -a, --all            print all devices 
 + -b, --bytes          print SIZE in bytes rather than in human readable format 
 + -d, --nodeps         don't print slaves or holders 
 + -D, --discard        print discard capabilities 
 + -z, --zoned          print zone model 
 + -e, --exclude <list> exclude devices by major number (default: RAM disks) 
 + -f, --fs             output info about filesystems 
 + -i, --ascii          use ascii characters only 
 + -I, --include <list> show only devices with specified major numbers 
 + -J, --json           use JSON output format 
 + -l, --list           use list format output 
 + -T, --tree           use tree format output 
 + -m, --perms          output info about permissions 
 + -n, --noheadings     don't print headings 
 + -o, --output <list>  output columns 
 + -O, --output-all     output all columns 
 + -p, --paths          print complete device path 
 + -P, --pairs          use key="value" output format 
 + -r, --raw            use raw output format 
 + -s, --inverse        inverse dependencies 
 + -S, --scsi           output info about SCSI devices 
 + -t, --topology       output info about topology 
 + -x, --sort <column>  sort output by <column> 
 + 
 + -h, --help           display this help 
 + -V, --version        display version 
 + 
 +Available output columns: 
 +        NAME  device name 
 +       KNAME  internal kernel device name 
 +     MAJ:MIN  major:minor device number 
 +      FSTYPE  filesystem type 
 +  MOUNTPOINT  where the device is mounted 
 +       LABEL  filesystem LABEL 
 +        UUID  filesystem UUID 
 +    PARTTYPE  partition type UUID 
 +   PARTLABEL  partition LABEL 
 +    PARTUUID  partition UUID 
 +   PARTFLAGS  partition flags 
 +          RA  read-ahead of the device 
 +          RO  read-only device 
 +          RM  removable device 
 +     HOTPLUG  removable or hotplug device (usb, pcmcia, ...) 
 +       MODEL  device identifier 
 +      SERIAL  disk serial number 
 +        SIZE  size of the device 
 +       STATE  state of the device 
 +       OWNER  user name 
 +       GROUP  group name 
 +        MODE  device node permissions 
 +   ALIGNMENT  alignment offset 
 +      MIN-IO  minimum I/O size 
 +      OPT-IO  optimal I/O size 
 +     PHY-SEC  physical sector size 
 +     LOG-SEC  logical sector size 
 +        ROTA  rotational device 
 +       SCHED  I/O scheduler name 
 +     RQ-SIZE  request queue size 
 +        TYPE  device type 
 +    DISC-ALN  discard alignment offset 
 +   DISC-GRAN  discard granularity 
 +    DISC-MAX  discard max bytes 
 +   DISC-ZERO  discard zeroes data 
 +       WSAME  write same max bytes 
 +         WWN  unique storage identifier 
 +        RAND  adds randomness 
 +      PKNAME  internal parent kernel device name 
 +        HCTL  Host:Channel:Target:Lun for SCSI 
 +        TRAN  device transport type 
 +  SUBSYSTEMS  de-duplicated chain of subsystems 
 +         REV  device revision 
 +      VENDOR  device vendor 
 +       ZONED  zone model 
 + 
 +For more details see lsblk(8). 
 +</code> 
 + 
 +====1.4 - La Commande lsscsi==== 
 + 
 +Cette commmande vous renseigne sur les périphériques SCSI et NVMe : 
 + 
 +<code> 
 +[root@centos8 ~]# lsscsi 
 +[1:0:0:0]    cd/dvd  QEMU     QEMU DVD-ROM     2.5+  /dev/sr0  
 +[2:0:0:0]    disk    ATA      QEMU HARDDISK    2.5+  /dev/sda  
 +[3:0:0:0]    disk    ATA      QEMU HARDDISK    2.5+  /dev/sdb  
 +[4:0:0:0]    disk    ATA      QEMU HARDDISK    2.5+  /dev/sdc  
 +[5:0:0:0]    disk    ATA      QEMU HARDDISK    2.5+  /dev/sdd  
 +</code> 
 + 
 +===Options de la commande=== 
 + 
 +Les options de cette commande sont : 
 + 
 +<code> 
 +[root@centos8 ~]# man lsscsi  
 +[root@centos8 ~]# lsscsi --help 
 +Usage: lsscsi   [--brief] [--classic] [--controllers] [--device] [--generic] 
 +                [--help] [--hosts] [--kname] [--list] [--long] [--long-unit] 
 +                [--lunhex] [--no-nvme] [--pdt] [--protection] [--prot-mode] 
 +                [--scsi_id] [--size] [--sz-lbs] [--sysfsroot=PATH] [--transport] 
 +                [--unit] [--verbose] [--version] [--wwn]  [<h:c:t:l>
 +  where: 
 +    --brief|-b        tuple and device name only 
 +    --classic|-c      alternate output similar to 'cat /proc/scsi/scsi' 
 +    --controllers|-C   synonym for --hosts since NVMe controllers treated 
 +                       like SCSI hosts 
 +    --device|-d       show device node's major + minor numbers 
 +    --generic|-g      show scsi generic device name 
 +    --help|-h         this usage information 
 +    --hosts|-H        lists scsi hosts rather than scsi devices 
 +    --kname|-k        show kernel name instead of device node name 
 +    --list|-L         additional information output one 
 +                      attribute=value per line 
 +    --long|-l         additional information output 
 +    --long-unit|-U    print LU name in full, use twice to prefix with 
 +                      '.naa', 'eui.', 'uuid.' or 't10.' 
 +    --lunhex|-x       show LUN part of tuple as hex number in T10 format; 
 +                      use twice to get full 16 digit hexadecimal LUN 
 +    --no-nvme|-N      exclude NVMe devices from output 
 +    --pdt|-D          show the peripheral device type in hex 
 +    --protection|-p   show target and initiator protection information 
 +    --protmode|-P     show negotiated protection information mode 
 +    --scsi_id|-i      show udev derived /dev/disk/by-id/scsi* entry 
 +    --size|-s         show disk size, (once for decimal (e.g. 3 GB), 
 +                      twice for power of two (e.g. 2.7 GiB), 
 +                      thrice for number of blocks)) 
 +    --sysfsroot=PATH|-y PATH    set sysfs mount point to PATH (def: /sys) 
 +    --sz-lbs|-S       show size as a number of logical blocks; if used twice 
 +                      adds comma followed by logical block size in bytes 
 +    --transport|-t    transport information for target or, if '--hosts' 
 +                      given, for initiator 
 +    --unit|-u         logical unit (LU) name (aka WWN for ATA/SATA) 
 +    --verbose|-v      output path names where data is found 
 +    --version|-V      output version string and exit 
 +    --wwn|-w          output WWN for disks (from /dev/disk/by-id/wwn*) 
 +    <h:c:t:l>         filter output list (def: '*:*:*:*' (all)). Meaning: 
 +                      <host_num:controller:target:lun> or for NVMe: 
 +                      <'N':ctl_num:cntlid:namespace_id> 
 + 
 +List SCSI devices or hosts, followed by NVMe namespaces or controllers. 
 +Many storage devices (e.g. SATA disks and USB attached storage) use SCSI 
 +command sets and hence are also listed by this utility. Hyphenated long 
 +options can also take underscore (and vice versa). 
 +</code> 
 + 
 +====1.5 - La Commande lscpu==== 
 + 
 +Cett commande vous renseigne sur l'architecture des CPUs : 
 + 
 +<code> 
 +[root@centos8 ~]# lscpu 
 +Architecture:        x86_64 
 +CPU op-mode(s):      32-bit, 64-bit 
 +Byte Order:          Little Endian 
 +CPU(s):              8 
 +On-line CPU(s) list: 0-7 
 +Thread(s) per core:  1 
 +Core(s) per socket: 
 +Socket(s):           2 
 +NUMA node(s):        1 
 +Vendor ID:           GenuineIntel 
 +BIOS Vendor ID:      QEMU 
 +CPU family:          6 
 +Model:               158 
 +Model name:          Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz 
 +BIOS Model name:     pc-i440fx-7.0 
 +Stepping:            9 
 +CPU MHz:             3791.998 
 +BogoMIPS:            7583.99 
 +Virtualization:      VT-x 
 +Hypervisor vendor:   KVM 
 +Virtualization type: full 
 +L1d cache:           32K 
 +L1i cache:           32K 
 +L2 cache:            4096K 
 +L3 cache:            16384K 
 +NUMA node0 CPU(s):   0-7 
 +Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology cpuid tsc_known_freq pni pclmulqdq vmx ssse3 fma cx16 pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves arat umip md_clear arch_capabilities 
 +</code> 
 + 
 +===Options de la commande=== 
 + 
 +Les options de cette commande sont : 
 + 
 +<code> 
 +[root@centos8 ~]# lscpu --help 
 + 
 +Usage: 
 + lscpu [options] 
 + 
 +Display information about the CPU architecture. 
 + 
 +Options: 
 + -a, --all               print both online and offline CPUs (default for -e) 
 + -b, --online            print online CPUs only (default for -p) 
 + -c, --offline           print offline CPUs only 
 + -J, --json              use JSON for default or extended format 
 + -e, --extended[=<list>] print out an extended readable format 
 + -p, --parse[=<list>   print out a parsable format 
 + -s, --sysroot <dir>     use specified directory as system root 
 + -x, --hex               print hexadecimal masks rather than lists of CPUs 
 + -y, --physical          print physical instead of logical IDs 
 + 
 + -h, --help              display this help 
 + -V, --version           display version 
 + 
 +Available output columns: 
 +           CPU  logical CPU number 
 +          CORE  logical core number 
 +        SOCKET  logical socket number 
 +       CLUSTER  logical cluster number 
 +          NODE  logical NUMA node number 
 +          BOOK  logical book number 
 +        DRAWER  logical drawer number 
 +         CACHE  shows how caches are shared between CPUs 
 +  POLARIZATION  CPU dispatching mode on virtual hardware 
 +       ADDRESS  physical address of a CPU 
 +    CONFIGURED  shows if the hypervisor has allocated the CPU 
 +        ONLINE  shows if Linux currently makes use of the CPU 
 +        MAXMHZ  shows the maximum MHz of the CPU 
 +        MINMHZ  shows the minimum MHz of the CPU 
 + 
 +For more details see lscpu(1). 
 +</code> 
 + 
 +====1.6 - La Command lshw==== 
 + 
 +Cette commande vous renseigne sur le matériel selon la **classe** de celui-ci. Commencez par visualiser les périphériques et leurs classes répectives : 
 + 
 +<code> 
 +[root@centos8 ~]# lshw -businfo 
 +Bus info          Device      Class      Description 
 +==================================================== 
 +                              system     Standard PC (i440FX + PIIX, 1996) 
 +                              bus        Motherboard 
 +                              memory     96KiB BIOS 
 +cpu@0                         processor  Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz 
 +cpu@1                         processor  Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz 
 +                              memory     16GiB System Memory 
 +                              memory     DIMM RAM [empty] 
 +pci@0000:00:00.0              bridge     440FX - 82441FX PMC [Natoma] 
 +pci@0000:00:01.0              bridge     82371SB PIIX3 ISA [Natoma/Triton II] 
 +                              input      PnP device PNP0303 
 +                              input      PnP device PNP0f13 
 +                              storage    PnP device PNP0700 
 +                              system     PnP device PNP0b00 
 +pci@0000:00:01.1  scsi1       storage    82371SB PIIX3 IDE [Natoma/Triton II] 
 +scsi@1:0.0.0      /dev/cdrom  disk       QEMU DVD-ROM 
 +pci@0000:00:01.2              bus        82371SB PIIX3 USB [Natoma/Triton II] 
 +usb@1             usb1        bus        UHCI Host Controller 
 +usb@1:          input5      input      QEMU QEMU USB Tablet 
 +pci@0000:00:01.3              bridge     82371AB/EB/MB PIIX4 ACPI 
 +pci@0000:00:02.0  /dev/fb0    display    bochs-drmdrmfb 
 +pci@0000:00:03.0              generic    Virtio memory balloon 
 +virtio@0                      generic    Virtual I/O device 
 +pci@0000:00:07.0  scsi2       storage    82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Contr 
 +scsi@2:0.0.0      /dev/sda    disk       34GB QEMU HARDDISK 
 +scsi@2:0.0.0,   /dev/sda1   volume     1GiB EXT4 volume 
 +scsi@2:0.0.0,   /dev/sda2   volume     30GiB Linux LVM Physical Volume partition 
 +scsi@3:0.0.0      /dev/sdb    disk       4294MB QEMU HARDDISK 
 +scsi@4:0.0.0      /dev/sdc    disk       68GB QEMU HARDDISK 
 +scsi@4:0.0.0,   /dev/sdc1   volume     63GiB EXT4 volume 
 +scsi@5:0.0.0      /dev/sdd    disk       34GB QEMU HARDDISK 
 +pci@0000:00:12.0              network    Virtio network device 
 +virtio@1          ens18       network    Ethernet interface 
 +pci@0000:00:13.0              network    Virtio network device 
 +virtio@2          ens19       network    Ethernet interface 
 +pci@0000:00:1e.0              bridge     QEMU PCI-PCI bridge 
 +pci@0000:00:1f.0              bridge     QEMU PCI-PCI bridge 
 +                  input0      input      Power Button 
 +                  input1      input      AT Translated Set 2 keyboard 
 +                  input3      input      VirtualPS/2 VMware VMMouse 
 +                  input4      input      VirtualPS/2 VMware VMMouse 
 +                  input6      input      PC Speaker 
 +</code> 
 + 
 +Consultez maintenant le matériel de la classe **system** : 
 + 
 +<code> 
 +[root@centos8 ~]# lshw -c system 
 +centos8.ittraining.loc       
 +    description: Computer 
 +    product: Standard PC (i440FX + PIIX, 1996) 
 +    vendor: QEMU 
 +    version: pc-i440fx-7.0 
 +    width: 64 bits 
 +    capabilities: smbios-2.8 dmi-2.8 smp vsyscall32 
 +    configuration: boot=normal uuid=95bd69e3-4a74-44a7-b58c-b74fbfb86df2 
 +  *-pnp00:03 
 +       product: PnP device PNP0b00 
 +       physical id: 3 
 +       capabilities: pnp 
 +       configuration: driver=rtc_cmos 
 +</code> 
 + 
 +Consultez maintenant le matériel des autres classes principales : 
 + 
 +<code> 
 +[root@centos8 ~]# lshw -c memory 
 +  *-firmware                 
 +       description: BIOS 
 +       vendor: SeaBIOS 
 +       physical id: 0 
 +       version: rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 
 +       date: 04/01/2014 
 +       size: 96KiB 
 +  *-memory 
 +       description: System Memory 
 +       physical id: 1000 
 +       size: 16GiB 
 +       capabilities: ecc 
 +       configuration: errordetection=multi-bit-ecc 
 +     *-bank 
 +          description: DIMM RAM [empty] 
 +          vendor: QEMU 
 +          physical id: 0 
 +          slot: DIMM 0 
 + 
 +[root@centos8 ~]# lshw -c video 
 +  *-display                  
 +       description: VGA compatible controller 
 +       product: bochs-drmdrmfb 
 +       physical id: 2 
 +       bus info: pci@0000:00:02.0 
 +       logical name: /dev/fb0 
 +       version: 02 
 +       width: 32 bits 
 +       clock: 33MHz 
 +       capabilities: vga_controller rom fb 
 +       configuration: depth=32 driver=bochs-drm latency=0 resolution=1280,800 
 +       resources: irq:0 memory:fd000000-fdffffff memory:fea90000-fea90fff memory:c0000-dffff 
 + 
 + 
 +[root@centos8 ~]# lshw -c storage 
 +  *-pnp00:02                 
 +       product: PnP device PNP0700 
 +       physical id: 2 
 +       capabilities: pnp 
 +  *-ide 
 +       description: IDE interface 
 +       product: 82371SB PIIX3 IDE [Natoma/Triton II] 
 +       vendor: Intel Corporation 
 +       physical id: 1.1 
 +       bus info: pci@0000:00:01.1 
 +       logical name: scsi1 
 +       version: 00 
 +       width: 32 bits 
 +       clock: 33MHz 
 +       capabilities: ide isa_compat_mode bus_master emulated 
 +       configuration: driver=ata_piix latency=0 
 +       resources: irq:0 ioport:1f0(size=8) ioport:3f6 ioport:170(size=8) ioport:376 ioport:e0c0(size=16) 
 +  *-sata 
 +       description: SATA controller 
 +       product: 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode] 
 +       vendor: Intel Corporation 
 +       physical id: 7 
 +       bus info: pci@0000:00:07.0 
 +       logical name: scsi2 
 +       logical name: scsi3 
 +       logical name: scsi4 
 +       logical name: scsi5 
 +       version: 02 
 +       width: 32 bits 
 +       clock: 33MHz 
 +       capabilities: sata msi ahci_1.0 bus_master cap_list emulated 
 +       configuration: driver=ahci latency=0 
 +       resources: irq:30 ioport:e060(size=32) memory:fea91000-fea91fff 
 + 
 + 
 +[root@centos8 ~]# lshw -c disk 
 +  *-cdrom                    
 +       description: DVD reader 
 +       product: QEMU DVD-ROM 
 +       vendor: QEMU 
 +       physical id: 0.0.0 
 +       bus info: scsi@1:0.0.0 
 +       logical name: /dev/cdrom 
 +       logical name: /dev/sr0 
 +       version: 2.5+ 
 +       capabilities: removable audio dvd 
 +       configuration: ansiversion=5 status=nodisc 
 +  *-disk:0 
 +       description: ATA Disk 
 +       product: QEMU HARDDISK 
 +       physical id: 0 
 +       bus info: scsi@2:0.0.0 
 +       logical name: /dev/sda 
 +       version: 2.5+ 
 +       serial: QM00005 
 +       size: 32GiB (34GB) 
 +       capabilities: partitioned partitioned:dos 
 +       configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512 signature=b39ec5c8 
 +  *-disk:1 
 +       description: ATA Disk 
 +       product: QEMU HARDDISK 
 +       physical id: 1 
 +       bus info: scsi@3:0.0.0 
 +       logical name: /dev/sdb 
 +       version: 2.5+ 
 +       serial: QM00007 
 +       size: 4GiB (4294MB) 
 +       configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512 
 +  *-disk:2 
 +       description: ATA Disk 
 +       product: QEMU HARDDISK 
 +       physical id: 2 
 +       bus info: scsi@4:0.0.0 
 +       logical name: /dev/sdc 
 +       version: 2.5+ 
 +       serial: QM00009 
 +       size: 64GiB (68GB) 
 +       capabilities: partitioned partitioned:dos 
 +       configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512 signature=45352f44 
 +  *-disk:3 
 +       description: ATA Disk 
 +       product: QEMU HARDDISK 
 +       physical id: 3 
 +       bus info: scsi@5:0.0.0 
 +       logical name: /dev/sdd 
 +       version: 2.5+ 
 +       serial: QM00011 
 +       size: 32GiB (34GB) 
 +       configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512 
 + 
 + 
 +[root@centos8 ~]# lshw -c volume 
 +  *-volume:                
 +       description: EXT4 volume 
 +       vendor: Linux 
 +       physical id: 1 
 +       bus info: scsi@2:0.0.0,
 +       logical name: /dev/sda1 
 +       logical name: /boot 
 +       version: 1.0 
 +       serial: 1c04981e-5317-4b73-9695-3ce25246835d 
 +       size: 1GiB 
 +       capacity: 1GiB 
 +       capabilities: primary bootable journaled extended_attributes large_files huge_files dir_nlink recover 64bit extents ext4 ext2 initialized 
 +       configuration: created=2021-06-16 12:21:27 filesystem=ext4 lastmountpoint=/boot modified=2022-11-10 07:12:41 mount.fstype=ext4 mount.options=rw,seclabel,relatime mounted=2022-11-10 07:12:41 state=mounted 
 +  *-volume:
 +       description: Linux LVM Physical Volume partition 
 +       physical id: 2 
 +       bus info: scsi@2:0.0.0,
 +       logical name: /dev/sda2 
 +       serial: kOJTuY-TbBA-JSvU-vhkb-rvpz-QoPt-bIKe2e 
 +       size: 30GiB 
 +       capacity: 30GiB 
 +       capabilities: primary multi lvm2 
 +  *-volume 
 +       description: EXT4 volume 
 +       vendor: Linux 
 +       physical id: 1 
 +       bus info: scsi@4:0.0.0,
 +       logical name: /dev/sdc1 
 +       logical name: /home 
 +       version: 1.0 
 +       serial: f76d6b66-985b-4a91-af9c-4987e8c1443c 
 +       size: 63GiB 
 +       capacity: 63GiB 
 +       capabilities: primary journaled extended_attributes large_files huge_files dir_nlink recover 64bit extents ext4 ext2 initialized 
 +       configuration: created=2021-07-19 18:02:13 filesystem=ext4 lastmountpoint=/home modified=2022-11-10 15:34:07 mount.fstype=ext4 mount.options=rw,seclabel,relatime mounted=2022-11-10 15:34:07 state=mounted 
 + 
 +[root@centos8 ~]# lshw -c network 
 +  *-network:               
 +       description: Ethernet controller 
 +       product: Virtio network device 
 +       vendor: Red Hat, Inc. 
 +       physical id: 12 
 +       bus info: pci@0000:00:12.0 
 +       version: 00 
 +       width: 64 bits 
 +       clock: 33MHz 
 +       capabilities: msix bus_master cap_list rom 
 +       configuration: driver=virtio-pci latency=0 
 +       resources: irq:10 ioport:e080(size=32) memory:fea92000-fea92fff memory:fe404000-fe407fff memory:fea00000-fea3ffff 
 +     *-virtio1 
 +          description: Ethernet interface 
 +          physical id: 0 
 +          bus info: virtio@1 
 +          logical name: ens18 
 +          serial: 5e:3f:e8:43:d5:f9 
 +          capabilities: ethernet physical 
 +          configuration: autonegotiation=off broadcast=yes driver=virtio_net driverversion=1.0.0 ip=10.0.2.45 link=yes multicast=yes 
 +  *-network:
 +       description: Ethernet controller 
 +       product: Virtio network device 
 +       vendor: Red Hat, Inc. 
 +       physical id: 13 
 +       bus info: pci@0000:00:13.0 
 +       version: 00 
 +       width: 64 bits 
 +       clock: 33MHz 
 +       capabilities: msix bus_master cap_list rom 
 +       configuration: driver=virtio-pci latency=0 
 +       resources: irq:10 ioport:e0a0(size=32) memory:fea93000-fea93fff memory:fe408000-fe40bfff memory:fea40000-fea7ffff 
 +     *-virtio2 
 +          description: Ethernet interface 
 +          physical id: 0 
 +          bus info: virtio@2 
 +          logical name: ens19 
 +          serial: ea:c8:86:9e:73:a6 
 +          capabilities: ethernet physical 
 +          configuration: autonegotiation=off broadcast=yes driver=virtio_net driverversion=1.0.0 link=yes multicast=yes 
 +</code> 
 + 
 +===Options de la commande=== 
 + 
 +Les options de cette commande sont : 
 + 
 +<code> 
 +[root@centos8 ~]# lshw -h 
 +Hardware Lister (lshw) - B.02.19.2 
 +usage: lshw [-format] [-options ...] 
 +       lshw -version 
 + 
 +        -version        print program version (B.02.19.2) 
 + 
 +format can be 
 +        -html           output hardware tree as HTML 
 +        -xml            output hardware tree as XML 
 +        -json           output hardware tree as a JSON object 
 +        -short          output hardware paths 
 +        -businfo        output bus information 
 + 
 +options can be 
 +        -dump filename  displays output and dump collected information into a file (SQLite database) 
 +        -class CLASS    only show a certain class of hardware 
 +        -C CLASS        same as '-class CLASS' 
 +        -c CLASS        same as '-class CLASS' 
 +        -disable TEST   disable a test (like pci, isapnp, cpuid, etc. ) 
 +        -enable TEST    enable a test (like pci, isapnp, cpuid, etc. ) 
 +        -quiet          don't display status 
 +        -sanitize       sanitize output (remove sensitive information like serial numbers, etc.) 
 +        -numeric        output numeric IDs (for PCI, USB, etc.) 
 +        -notime         exclude volatile attributes (timestamps) from output 
 +</code> 
 + 
 +====1.7 - La Commande dmidecode====
  
 La commande **dmidecode** lit la table **DMI** (//Desktop Management Interface//) aussi appelée **SMBIOS** (//System Management BIOS//) et fourni les informations sur : La commande **dmidecode** lit la table **DMI** (//Desktop Management Interface//) aussi appelée **SMBIOS** (//System Management BIOS//) et fourni les informations sur :
Ligne 458: Ligne 1055:
      --from-dump FILE   Read the DMI data from a binary file      --from-dump FILE   Read the DMI data from a binary file
  -V, --version          Display the version and exit  -V, --version          Display the version and exit
 +</code>
 +
 +====1.8 - La Commande smartctl====
 +
 +**smartctl** contrôle le système SMART (Self-Monitoring, Analysis and Reporting Technology) intégré à la plupart des disques durs et disques SSD ATA/SATA et SCSI/SAS :
 +
 +<code>
 +[root@centos8 ~]# smartctl --smart=on --saveauto=on --offlineauto=on /dev/sdb
 +
 +[root@centos8 ~]# smartctl -a /dev/sdb
 +smartctl 7.1 2020-04-05 r5049 [x86_64-linux-4.18.0-305.7.1.el8_4.x86_64] (local build)
 +Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
 +
 +=== START OF INFORMATION SECTION ===
 +Device Model:     QEMU HARDDISK
 +Serial Number:    QM00007
 +Firmware Version: 2.5+
 +User Capacity:    4,294,967,296 bytes [4.29 GB]
 +Sector Size:      512 bytes logical/physical
 +Device is:        Not in smartctl database [for details use: -P showall]
 +ATA Version is:   ATA/ATAPI-7, ATA/ATAPI-5 published, ANSI NCITS 340-2000
 +Local Time is:    Sun Nov 13 09:12:18 2022 CET
 +SMART support is: Available - device has SMART capability.
 +SMART support is: Enabled
 +
 +=== START OF READ SMART DATA SECTION ===
 +SMART overall-health self-assessment test result: PASSED
 +
 +General SMART Values:
 +Offline data collection status:  (0x02) Offline data collection activity
 +                                        was completed without error.
 +                                        Auto Offline Data Collection: Disabled.
 +Self-test execution status:      (   0) The previous self-test routine completed
 +                                        without error or no self-test has ever 
 +                                        been run.
 +Total time to complete Offline 
 +data collection:                (  288) seconds.
 +Offline data collection
 +capabilities:                    (0x19) SMART execute Offline immediate.
 +                                        No Auto Offline data collection support.
 +                                        Suspend Offline collection upon new
 +                                        command.
 +                                        Offline surface scan supported.
 +                                        Self-test supported.
 +                                        No Conveyance Self-test supported.
 +                                        No Selective Self-test supported.
 +SMART capabilities:            (0x0003) Saves SMART data before entering
 +                                        power-saving mode.
 +                                        Supports SMART auto save timer.
 +Error logging capability:        (0x01) Error logging supported.
 +                                        No General Purpose Logging support.
 +Short self-test routine 
 +recommended polling time:        (   2) minutes.
 +Extended self-test routine
 +recommended polling time:        (  54) minutes.
 +
 +SMART Attributes Data Structure revision number: 1
 +Vendor Specific SMART Attributes with Thresholds:
 +ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
 +  1 Raw_Read_Error_Rate     0x0003   100   100   006    Pre-fail  Always             0
 +  3 Spin_Up_Time            0x0003   100   100   000    Pre-fail  Always             16
 +  4 Start_Stop_Count        0x0002   100   100   020    Old_age   Always             100
 +  5 Reallocated_Sector_Ct   0x0003   100   100   036    Pre-fail  Always             0
 +  9 Power_On_Hours          0x0003   100   100   000    Pre-fail  Always             1
 + 12 Power_Cycle_Count       0x0003   100   100   000    Pre-fail  Always             0
 +190 Airflow_Temperature_Cel 0x0003   069   069   050    Pre-fail  Always             31 (Min/Max 31/31)
 +
 +SMART Error Log Version: 1
 +No Errors Logged
 +
 +SMART Self-test log structure revision number 1
 +No self-tests have been logged.  [To run self-tests, use: smartctl -t]
 +
 +Selective Self-tests/Logging not supported
 +</code>
 +
 +===Options de la commande===
 +
 +Les options de cette commande sont :
 +
 +<code>
 +[root@centos8 ~]# smartctl --help
 +smartctl 7.1 2020-04-05 r5049 [x86_64-linux-4.18.0-305.7.1.el8_4.x86_64] (local build)
 +Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
 +
 +Usage: smartctl [options] device
 +
 +============================================ SHOW INFORMATION OPTIONS =====
 +
 +  -h, --help, --usage
 +         Display this help and exit
 +
 +  -V, --version, --copyright, --license
 +         Print license, copyright, and version information and exit
 +
 +  -i, --info
 +         Show identity information for device
 +
 +  --identify[=[w][nvb]]
 +         Show words and bits from IDENTIFY DEVICE data                (ATA)
 +
 +  -g NAME, --get=NAME
 +        Get device setting: all, aam, apm, dsn, lookahead, security,
 +        wcache, rcache, wcreorder, wcache-sct
 +
 +  -a, --all
 +         Show all SMART information for device
 +
 +  -x, --xall
 +         Show all information for device
 +
 +  --scan
 +         Scan for devices
 +
 +  --scan-open
 +         Scan for devices and try to open each device
 +
 +================================== SMARTCTL RUN-TIME BEHAVIOR OPTIONS =====
 +
 +  -j, --json[=[cgiosuv]]
 +         Print output in JSON format
 +
 +  -q TYPE, --quietmode=TYPE                                           (ATA)
 +         Set smartctl quiet mode to one of: errorsonly, silent, noserial
 +
 +  -d TYPE, --device=TYPE
 +         Specify device type to one of:
 +         ata, scsi[+TYPE], nvme[,NSID], sat[,auto][,N][+TYPE], usbcypress[,X], usbjmicron[,p][,x][,N], usbprolific, usbsunplus, sntjmicron[,NSID], intelliprop,N[+TYPE], jmb39x,N[,sLBA][,force][+TYPE], marvell, areca,N/E, 3ware,N, hpt,L/M/N, megaraid,N, aacraid,H,L,ID, cciss,N, auto, test
 +
 +  -T TYPE, --tolerance=TYPE                                           (ATA)
 +         Tolerance: normal, conservative, permissive, verypermissive
 +
 +  -b TYPE, --badsum=TYPE                                              (ATA)
 +         Set action on bad checksum to one of: warn, exit, ignore
 +
 +  -r TYPE, --report=TYPE
 +         Report transactions (see man page)
 +
 +  -n MODE[,STATUS], --nocheck=MODE[,STATUS]                           (ATA)
 +         No check if: never, sleep, standby, idle (see man page)
 +
 +============================== DEVICE FEATURE ENABLE/DISABLE COMMANDS =====
 +
 +  -s VALUE, --smart=VALUE
 +        Enable/disable SMART on device (on/off)
 +
 +  -o VALUE, --offlineauto=VALUE                                       (ATA)
 +        Enable/disable automatic offline testing on device (on/off)
 +
 +  -S VALUE, --saveauto=VALUE                                          (ATA)
 +        Enable/disable Attribute autosave on device (on/off)
 +
 +  -s NAME[,VALUE], --set=NAME[,VALUE]
 +        Enable/disable/change device setting: aam,[N|off], apm,[N|off],
 +        dsn,[on|off], lookahead,[on|off], security-freeze,
 +        standby,[N|off|now], wcache,[on|off], rcache,[on|off],
 +        wcreorder,[on|off[,p]], wcache-sct,[ata|on|off[,p]]
 +
 +======================================= READ AND DISPLAY DATA OPTIONS =====
 +
 +  -H, --health
 +        Show device SMART health status
 +
 +  -c, --capabilities                                            (ATA, NVMe)
 +        Show device SMART capabilities
 +
 +  -A, --attributes
 +        Show device SMART vendor-specific Attributes and values
 +
 +  -f FORMAT, --format=FORMAT                                          (ATA)
 +        Set output format for attributes: old, brief, hex[,id|val]
 +
 +  -l TYPE, --log=TYPE
 +        Show device log. TYPE: error, selftest, selective, directory[,g|s],
 +        xerror[,N][,error], xselftest[,N][,selftest], background,
 +        sasphy[,reset], sataphy[,reset], scttemp[sts,hist],
 +        scttempint,N[,p], scterc[,N,M], devstat[,N], defects[,N], ssd,
 +        gplog,N[,RANGE], smartlog,N[,RANGE], nvmelog,N,SIZE
 +
 +  -v N,OPTION , --vendorattribute=N,OPTION                            (ATA)
 +        Set display OPTION for vendor Attribute N (see man page)
 +
 +  -F TYPE, --firmwarebug=TYPE                                         (ATA)
 +        Use firmware bug workaround:
 +        none, nologdir, samsung, samsung2, samsung3, xerrorlba, swapid
 +
 +  -P TYPE, --presets=TYPE                                             (ATA)
 +        Drive-specific presets: use, ignore, show, showall
 +
 +  -B [+]FILE, --drivedb=[+]FILE                                       (ATA)
 +        Read and replace [add] drive database from FILE
 +        [default is +/etc/smartmontools/smart_drivedb.h
 +         and then    /usr/share/smartmontools/drivedb.h]
 +
 +============================================ DEVICE SELF-TEST OPTIONS =====
 +
 +  -t TEST, --test=TEST
 +        Run test. TEST: offline, short, long, conveyance, force, vendor,N,
 +                        select,M-N, pending,N, afterselect,[on|off]
 +
 +  -C, --captive
 +        Do test in captive mode (along with -t)
 +
 +  -X, --abort
 +        Abort any non-captive test on device
 +
 +=================================================== SMARTCTL EXAMPLES =====
 +
 +  smartctl --all /dev/sda                    (Prints all SMART information)
 +
 +  smartctl --smart=on --offlineauto=on --saveauto=on /dev/sda
 +                                              (Enables SMART on first disk)
 +
 +  smartctl --test=long /dev/sda          (Executes extended disk self-test)
 +
 +  smartctl --attributes --log=selftest --quietmode=errorsonly /dev/sda
 +                                      (Prints Self-Test & Attribute errors)
 +  smartctl --all --device=3ware,2 /dev/sda
 +  smartctl --all --device=3ware,2 /dev/twe0
 +  smartctl --all --device=3ware,2 /dev/twa0
 +  smartctl --all --device=3ware,2 /dev/twl0
 +          (Prints all SMART info for 3rd ATA disk on 3ware RAID controller)
 +  smartctl --all --device=hpt,1/1/3 /dev/sda
 +          (Prints all SMART info for the SATA disk attached to the 3rd PMPort
 +           of the 1st channel on the 1st HighPoint RAID controller)
 +  smartctl --all --device=areca,3/1 /dev/sg2
 +          (Prints all SMART info for 3rd ATA disk of the 1st enclosure
 +           on Areca RAID controller)
 +</code>
 +
 +====1.9 - Les Commandes accton et dump-acct====
 +
 +Cette commande permet d'activer ou désactiver la comptabilisation des processus :
 +
 +<code>
 +[root@centos8 ~]# accton on
 +Turning on process accounting, file set to the default '/var/account/pacct'.
 +[root@centos8 ~]# systemctl status psacct
 +● psacct.service - Kernel process accounting
 +   Loaded: loaded (/usr/lib/systemd/system/psacct.service; disabled; vendor preset: d>
 +   Active: inactive (dead)
 +...skipping...
 +● psacct.service - Kernel process accounting
 +   Loaded: loaded (/usr/lib/systemd/system/psacct.service; disabled; vendor preset: d>
 +   Active: inactive (dead)
 +
 +[root@centos8 ~]# systemctl enable psacct
 +Created symlink /etc/systemd/system/multi-user.target.wants/psacct.service → /usr/lib/systemd/system/psacct.service.
 +
 +[root@centos8 ~]# systemctl start psacct
 +
 +[root@centos8 ~]# systemctl status psacct
 +● psacct.service - Kernel process accounting
 +   Loaded: loaded (/usr/lib/systemd/system/psacct.service; enabled; vendor preset: di>
 +   Active: active (exited) since Sun 2022-11-13 09:35:16 CET; 4s ago
 +  Process: 39765 ExecStart=/usr/sbin/accton /var/account/pacct (code=exited, status=0>
 +  Process: 39763 ExecStartPre=/usr/libexec/psacct/accton-create (code=exited, status=>
 + Main PID: 39765 (code=exited, status=0/SUCCESS)
 +
 +Nov 13 09:35:16 centos8.ittraining.loc systemd[1]: Starting Kernel process accounting>
 +Nov 13 09:35:16 centos8.ittraining.loc accton[39765]: Turning on process accounting, >
 +Nov 13 09:35:16 centos8.ittraining.loc systemd[1]: Started Kernel process accounting.
 +</code>
 +
 +Par contre le fichier **/var/account/pacct** ne peut pas être lu avec les utilitaires de consultation de fichiers texte :
 +
 +<code>
 +[root@centos8 ~]# cat /var/account/pacct
 +#pcKaccton pcEusleep%$pcu,awk$pc-iksmtuned('pc6pgrep'&pc-`ksmtuned)&pc,Eksmtuned*&pcd,awk&pc-ksmtuned/.'pc`D$less.'pcDEsystemctl+pcEssleep107pcu,awk07pc-jksmtuned437pc6pgrep327pc-bksmtuned527pc,Gksmtuned627pcd,awk27pc-ksmtuned?9;pc2rpc-pipefs-gene=9;pc2nfs-server-geneA9;pcEsystemd-cryptseI9;pcEsystemd-system-G9;pcEsystemd-hibernaC9;pcEsystemd-fstab-gE:;pc(^readlinkM;;pc$dgrepJ<;pc?lvmconfigN@;pc&`selinuxenabled;9;pc?s+Hkdump-dep-gener<9;pc?k0lvm2-activation:9;pc?B+anaconda-generaH9;pc?Esystemd-rc-loca>9;pc?SIostree-system-gO@;pc$agrep@9;pc?B+selinux-autorelB9;pc?Esystemd-debug-gK9;pc?Esystemd-sysv-geL9;pc?Esystemd-veritysD9;pc?Esystemd-getty-gF9;pc?Esystemd-gpt-aut9;pc@OC(sd-executor)8;pc`AEsystemctlSDpc?,accton-createUDpcacctonUDpacctonRQDpc@Esystemd-tty-askQDpc@@EsystemctlTDpcEsystemd-cgroupsVDpcEsystemd-cgroupsZYIpc`C$lessYIpcaCE%systemctlǘpcGkworker/dying77pcEssleepdcspcu,awkcspc-iksmtunedgfspc6pgrepfespc-_ksmtunedhespc,Fksmtunediespcd,awkespc?-ksmtuned[root@centos8 ~]#
 +</code>
 +
 +La commande **dump-acct** permet de voir son contenu mais pas de l'exploiter :
 +
 +<code>
 +[root@centos8 ~]# dump-acct /var/account/pacct
 +accton          |v3|     0.00|     0.00|     1.00|     0|     0|  4360.00|     0.00|   39715|   37763|S    |       0|pts/  |Sun Nov 13 09:33:52 2022
 +sleep           |v3|     0.00|     0.00|  6000.00|     0|     0|  7308.00|     0.00|   39712|    1022|           0|__      |Sun Nov 13 09:33:03 2022
 +awk             |v3|     0.00|     0.00|     0.00|     0|     0| 25512.00|     0.00|   39717|   39716|           0|__      |Sun Nov 13 09:34:03 2022
 +ksmtuned        |v3|     0.00|     0.00|     0.00|     0|     0| 26632.00|     0.00|   39716|    1022| F         0|__      |Sun Nov 13 09:34:03 2022
 +pgrep           |v3|     0.00|     0.00|     0.00|     0|     0| 45104.00|     0.00|   39720|   39719|           1|__      |Sun Nov 13 09:34:03 2022
 +ksmtuned        |v3|     0.00|     0.00|     0.00|     0|     0| 26632.00|     0.00|   39719|   39718| F         1|__      |Sun Nov 13 09:34:03 2022
 +ksmtuned        |v3|     0.00|     0.00|     0.00|     0|     0| 26112.00|     0.00|   39721|   39718| F         0|__      |Sun Nov 13 09:34:03 2022
 +awk             |v3|     0.00|     0.00|     0.00|     0|     0| 25376.00|     0.00|   39722|   39718|           0|__      |Sun Nov 13 09:34:03 2022
 +ksmtuned        |v3|     0.00|     0.00|     0.00|     0|     0| 26632.00|     0.00|   39718|    1022| F         0|__      |Sun Nov 13 09:34:03 2022
 +less            |v3|     0.00|     0.00|  1187.00|     0|     0|  9704.00|     0.00|   39727|   39726|S    |       0|pts/  |Sun Nov 13 09:34:47 2022
 +systemctl       |v3|     0.00|     0.00|  1188.00|     0|     0| 93504.00|     0.00|   39726|   37763|S    |       3|pts/  |Sun Nov 13 09:34:47 2022
 +sleep           |v3|     0.00|     0.00|  6000.00|     0|     0|  7308.00|     0.00|   39723|    1022|           0|__      |Sun Nov 13 09:34:03 2022
 +awk             |v3|     0.00|     0.00|     0.00|     0|     0| 25512.00|     0.00|   39729|   39728|           0|__      |Sun Nov 13 09:35:03 2022
 +ksmtuned        |v3|     0.00|     0.00|     0.00|     0|     0| 26632.00|     0.00|   39728|    1022| F         0|__      |Sun Nov 13 09:35:03 2022
 +pgrep           |v3|     0.00|     0.00|     0.00|     0|     0| 45104.00|     0.00|   39732|   39731|           1|__      |Sun Nov 13 09:35:03 2022
 +ksmtuned        |v3|     0.00|     0.00|     0.00|     0|     0| 26632.00|     0.00|   39731|   39730| F         1|__      |Sun Nov 13 09:35:03 2022
 +ksmtuned        |v3|     0.00|     0.00|     0.00|     0|     0| 26112.00|     0.00|   39733|   39730| F         0|__      |Sun Nov 13 09:35:03 2022
 +awk             |v3|     0.00|     0.00|     0.00|     0|     0| 25376.00|     0.00|   39734|   39730|           0|__      |Sun Nov 13 09:35:03 2022
 +ksmtuned        |v3|     0.00|     0.00|     0.00|     0|     0| 26632.00|     0.00|   39730|    1022| F         0|__      |Sun Nov 13 09:35:03 2022
 +rpc-pipefs-gene |v3|     0.00|     0.00|     0.00|     0|     0| 38752.00|     0.00|   39743|   39737|S    |       0|__      |Sun Nov 13 09:35:07 2022
 +nfs-server-gene |v3|     0.00|     0.00|     0.00|     0|     0| 38880.00|     0.00|   39741|   39737|S    |       0|__      |Sun Nov 13 09:35:07 2022
 +systemd-cryptse |v3|     0.00|     0.00|     0.00|     0|     0| 90368.00|     0.00|   39745|   39737|S    |       0|__      |Sun Nov 13 09:35:07 2022
 +systemd-system- |v3|     0.00|     0.00|     0.00|     0|     0| 90368.00|     0.00|   39753|   39737|S    |       0|__      |Sun Nov 13 09:35:07 2022
 +systemd-hiberna |v3|     0.00|     0.00|     0.00|     0|     0| 90368.00|     0.00|   39751|   39737|S    |       0|__      |Sun Nov 13 09:35:07 2022
 +...
 +</code>
 +
 +===Options de la commande===
 +
 +Les options de cette commande sont :
 +
 +<code>
 +[root@centos8 ~]# dump-acct --help
 +Usage: dump-acct [-hrR] [-n <recs>] <files>
 +          [--num <recs>] [--raw] [--reverse] [--help]
 +          [--format <version>] [--byteswap]
 +          [--ahz <freq>]
 +
 +The system's default process accounting file is /var/account/pacct.
 +</code>
 +
 +====1.10 - La Commande lastcomm====
 +
 +Cette commande vous renseigne sur l'historique et les statistiques des commandes par utilisateur :
 +
 +<code>
 +[root@centos8 ~]# lastcomm
 +bash              F    root     pts/     0.00 secs Sun Nov 13 09:41
 +gdbus                X root     pts/     0.00 secs Sun Nov 13 09:41
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:41
 +awk                    root     __         0.00 secs Sun Nov 13 09:41
 +kworker/dying        root     __         0.00 secs Sun Nov 13 09:30
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:41
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:41
 +pgrep                  root     __         0.00 secs Sun Nov 13 09:41
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:41
 +awk                    root     __         0.00 secs Sun Nov 13 09:41
 +sleep                  root     __         0.00 secs Sun Nov 13 09:40
 +kworker/dying        root     __         0.00 secs Sun Nov 13 09:07
 +kworker/dying        root     __         0.00 secs Sun Nov 13 09:35
 +kworker/dying        root     __         0.00 secs Sun Nov 13 09:07
 +dump-acct              root     pts/     0.00 secs Sun Nov 13 09:40
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:40
 +awk                    root     __         0.00 secs Sun Nov 13 09:40
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:40
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:40
 +pgrep                  root     __         0.00 secs Sun Nov 13 09:40
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:40
 +awk                    root     __         0.00 secs Sun Nov 13 09:40
 +sleep                  root     __         0.00 secs Sun Nov 13 09:39
 +dump-acct              root     pts/     0.00 secs Sun Nov 13 09:39
 +man                    root     pts/     0.01 secs Sun Nov 13 09:38
 +less                   root     pts/     0.00 secs Sun Nov 13 09:38
 +kworker/dying        root     __         0.00 secs Sat Nov 12 19:37
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:39
 +awk                    root     __         0.00 secs Sun Nov 13 09:39
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:39
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:39
 +pgrep                  root     __         0.00 secs Sun Nov 13 09:39
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:39
 +awk                    root     __         0.00 secs Sun Nov 13 09:39
 +sleep                  root     __         0.00 secs Sun Nov 13 09:38
 +man                  root     pts/     0.00 secs Sun Nov 13 09:38
 +nroff                  root     pts/     0.00 secs Sun Nov 13 09:38
 +groff                  root     pts/     0.00 secs Sun Nov 13 09:38
 +grotty                 root     pts/     0.00 secs Sun Nov 13 09:38
 +troff                  root     pts/     0.00 secs Sun Nov 13 09:38
 +nroff                root     pts/     0.00 secs Sun Nov 13 09:38
 +locale                 root     pts/     0.00 secs Sun Nov 13 09:38
 +tbl                    root     pts/     0.00 secs Sun Nov 13 09:38
 +preconv                root     pts/     0.00 secs Sun Nov 13 09:38
 +man                  root     pts/     0.00 secs Sun Nov 13 09:38
 +man                  root     pts/     0.00 secs Sun Nov 13 09:38
 +man                  root     pts/     0.00 secs Sun Nov 13 09:38
 +man                  root     pts/     0.00 secs Sun Nov 13 09:38
 +man                  root     pts/     0.00 secs Sun Nov 13 09:38
 +man                  root     pts/     0.00 secs Sun Nov 13 09:38
 +man                  root     pts/     0.00 secs Sun Nov 13 09:38
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:38
 +awk                    root     __         0.00 secs Sun Nov 13 09:38
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:38
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:38
 +pgrep                  root     __         0.00 secs Sun Nov 13 09:38
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:38
 +awk                    root     __         0.00 secs Sun Nov 13 09:38
 +sleep                  root     __         0.00 secs Sun Nov 13 09:37
 +dump-acct              root     pts/     0.00 secs Sun Nov 13 09:37
 +kworker/dying        root     __         0.00 secs Sun Nov 13 09:05
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:37
 +awk                    root     __         0.00 secs Sun Nov 13 09:37
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:37
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:37
 +pgrep                  root     __         0.00 secs Sun Nov 13 09:37
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:37
 +awk                    root     __         0.00 secs Sun Nov 13 09:37
 +sleep                  root     __         0.00 secs Sun Nov 13 09:36
 +cat                    root     pts/     0.00 secs Sun Nov 13 09:36
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:36
 +awk                    root     __         0.00 secs Sun Nov 13 09:36
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:36
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:36
 +pgrep                  root     __         0.00 secs Sun Nov 13 09:36
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:36
 +awk                    root     __         0.00 secs Sun Nov 13 09:36
 +sleep                  root     __         0.00 secs Sun Nov 13 09:35
 +kworker/dying        root     __         0.00 secs Sun Nov 13 09:19
 +systemctl        S     root     pts/     0.00 secs Sun Nov 13 09:35
 +less                 root     pts/     0.00 secs Sun Nov 13 09:35
 +systemd-cgroups        root     __         0.00 secs Sun Nov 13 09:35
 +systemd-cgroups        root     __         0.00 secs Sun Nov 13 09:35
 +systemctl        S     root     pts/     0.00 secs Sun Nov 13 09:35
 +systemd-tty-ask  S     root     pts/     0.00 secs Sun Nov 13 09:35
 +accton               root     __         0.00 secs Sun Nov 13 09:35
 +accton                 root     __         0.00 secs Sun Nov 13 09:35
 +accton-create    S     root     __         0.00 secs Sun Nov 13 09:35
 +systemctl        S     root     pts/     0.00 secs Sun Nov 13 09:35
 +(sd-executor)    SF    root     __         0.00 secs Sun Nov 13 09:35
 +systemd-gpt-aut  S     root     __         0.00 secs Sun Nov 13 09:35
 +systemd-getty-g  S     root     __         0.00 secs Sun Nov 13 09:35
 +systemd-veritys  S     root     __         0.00 secs Sun Nov 13 09:35
 +systemd-sysv-ge  S     root     __         0.00 secs Sun Nov 13 09:35
 +systemd-debug-g  S     root     __         0.00 secs Sun Nov 13 09:35
 +selinux-autorel  S     root     __         0.00 secs Sun Nov 13 09:35
 +grep                   root     __         0.00 secs Sun Nov 13 09:35
 +ostree-system-g  S     root     __         0.01 secs Sun Nov 13 09:35
 +systemd-rc-loca  S     root     __         0.00 secs Sun Nov 13 09:35
 +anaconda-genera  S     root     __         0.00 secs Sun Nov 13 09:35
 +lvm2-activation  S     root     __         0.00 secs Sun Nov 13 09:35
 +kdump-dep-gener  S     root     __         0.00 secs Sun Nov 13 09:35
 +selinuxenabled         root     __         0.00 secs Sun Nov 13 09:35
 +lvmconfig              root     __         0.00 secs Sun Nov 13 09:35
 +grep                   root     __         0.00 secs Sun Nov 13 09:35
 +readlink               root     __         0.00 secs Sun Nov 13 09:35
 +systemd-fstab-g  S     root     __         0.00 secs Sun Nov 13 09:35
 +systemd-hiberna  S     root     __         0.00 secs Sun Nov 13 09:35
 +systemd-system-  S     root     __         0.00 secs Sun Nov 13 09:35
 +systemd-cryptse  S     root     __         0.00 secs Sun Nov 13 09:35
 +nfs-server-gene  S     root     __         0.00 secs Sun Nov 13 09:35
 +rpc-pipefs-gene  S     root     __         0.00 secs Sun Nov 13 09:35
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:35
 +awk                    root     __         0.00 secs Sun Nov 13 09:35
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:35
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:35
 +pgrep                  root     __         0.00 secs Sun Nov 13 09:35
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:35
 +awk                    root     __         0.00 secs Sun Nov 13 09:35
 +sleep                  root     __         0.00 secs Sun Nov 13 09:34
 +systemctl        S     root     pts/     0.00 secs Sun Nov 13 09:34
 +less                 root     pts/     0.00 secs Sun Nov 13 09:34
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:34
 +awk                    root     __         0.00 secs Sun Nov 13 09:34
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:34
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:34
 +pgrep                  root     __         0.00 secs Sun Nov 13 09:34
 +ksmtuned          F    root     __         0.00 secs Sun Nov 13 09:34
 +awk                    root     __         0.00 secs Sun Nov 13 09:34
 +sleep                  root     __         0.00 secs Sun Nov 13 09:33
 +accton               root     pts/     0.00 secs Sun Nov 13 09:33
 +
 +[root@centos8 ~]# lastcomm grep
 +grep                   root     pts/     0.00 secs Sun Nov 13 09:46
 +grep                   root     pts/     0.00 secs Sun Nov 13 09:45
 +grep                   root     __         0.00 secs Sun Nov 13 09:35
 +grep                   root     __         0.00 secs Sun Nov 13 09:35
 +</code>
 +
 +===Options de la commande===
 +
 +Les options de cette commande sont :
 +
 +<code>
 +[root@centos8 ~]# lastcomm --help
 +Usage: lastcomm [-hpV] [-f file] [command] ... [user] ... [terminal] ...
 +       [--forwards] [--file <file>] [--strict-match] [--print-controls]
 +       [--user <name>] [--tty <name>] [--command <name>] [--debug]
 +       [--show-paging] [--pid] [--ahz <freq>] [--version] [--help]
 +
 +The system's default process accounting file is /var/account/pacct.
 +</code>
 +
 +====1.11 - La Commande sa====
 +
 +Cette commande vous renseigne sur les statistiques sur les processus lancés et leurs ressources systèmes:
 +
 +<code>
 +[root@centos8 ~]# sa -u | egrep "root"
 +root       0.00 cpu     1090k mem      0 io accton          
 +root       0.00 cpu     1827k mem      0 io sleep           
 +root       0.00 cpu     6378k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu    11276k mem      0 io pgrep           
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     6528k mem      0 io ksmtuned        *
 +root       0.00 cpu     6344k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     2426k mem      0 io less            
 +root       0.00 cpu    23376k mem      0 io systemctl       
 +root       0.00 cpu     1827k mem      0 io sleep           
 +root       0.00 cpu     6378k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu    11276k mem      0 io pgrep           
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     6528k mem      0 io ksmtuned        *
 +root       0.00 cpu     6344k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     9688k mem      0 io rpc-pipefs-gene 
 +root       0.00 cpu     9720k mem      0 io nfs-server-gene 
 +root       0.00 cpu    22592k mem      0 io systemd-cryptse 
 +root       0.00 cpu    22592k mem      0 io systemd-system- 
 +root       0.00 cpu    22592k mem      0 io systemd-hiberna 
 +root       0.00 cpu    22592k mem      0 io systemd-fstab-g 
 +root       0.00 cpu     1098k mem      0 io readlink        
 +root       0.00 cpu     2302k mem      0 io grep            
 +root       0.00 cpu    16260k mem      0 io lvmconfig       
 +root       0.00 cpu     3350k mem      0 io selinuxenabled  
 +root       0.00 cpu     5862k mem      0 io kdump-dep-gener 
 +root       0.00 cpu     8406k mem      0 io lvm2-activation 
 +root       0.00 cpu     5764k mem      0 io anaconda-genera 
 +root       0.00 cpu    22592k mem      0 io systemd-rc-loca 
 +root       0.01 cpu    38192k mem      0 io ostree-system-g 
 +root       0.00 cpu     2302k mem      0 io grep            
 +root       0.00 cpu     5764k mem      0 io selinux-autorel 
 +root       0.00 cpu    22592k mem      0 io systemd-debug-g 
 +root       0.00 cpu    22592k mem      0 io systemd-sysv-ge 
 +root       0.00 cpu    22592k mem      0 io systemd-veritys 
 +root       0.00 cpu    22592k mem      0 io systemd-getty-g 
 +root       0.00 cpu    22592k mem      0 io systemd-gpt-aut 
 +root       0.00 cpu    63728k mem      0 io (sd-executor)   *
 +root       0.00 cpu    23632k mem      0 io systemctl       
 +root       0.00 cpu     6496k mem      0 io accton-create   
 +root       0.00 cpu        0k mem      0 io accton          
 +root       0.00 cpu     1090k mem      0 io accton          
 +root       0.00 cpu    22592k mem      0 io systemd-tty-ask 
 +root       0.00 cpu    23376k mem      0 io systemctl       
 +root       0.00 cpu    22592k mem      0 io systemd-cgroups 
 +root       0.00 cpu    22592k mem      0 io systemd-cgroups 
 +root       0.00 cpu     2426k mem      0 io less            
 +root       0.00 cpu    23376k mem      0 io systemctl       
 +root       0.00 cpu        0k mem      0 io kworker/dying   *
 +root       0.00 cpu     1827k mem      0 io sleep           
 +root       0.00 cpu     6378k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu    11276k mem      0 io pgrep           
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     6528k mem      0 io ksmtuned        *
 +root       0.00 cpu     6344k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     1828k mem      0 io cat             
 +root       0.00 cpu     1827k mem      0 io sleep           
 +root       0.00 cpu     6378k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu    11276k mem      0 io pgrep           
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     6528k mem      0 io ksmtuned        *
 +root       0.00 cpu     6344k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu        0k mem      0 io kworker/dying   *
 +root       0.00 cpu     1994k mem      0 io dump-acct       
 +root       0.00 cpu     1827k mem      0 io sleep           
 +root       0.00 cpu     6378k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu    11276k mem      0 io pgrep           
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     6528k mem      0 io ksmtuned        *
 +root       0.00 cpu     6344k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     4582k mem      0 io man             *
 +root       0.00 cpu     4804k mem      0 io man             *
 +root       0.00 cpu     4804k mem      0 io man             *
 +root       0.00 cpu     4804k mem      0 io man             *
 +root       0.00 cpu     4804k mem      0 io man             *
 +root       0.00 cpu     4804k mem      0 io man             *
 +root       0.00 cpu     4844k mem      0 io man             *
 +root       0.00 cpu     4186k mem      0 io preconv         
 +root       0.00 cpu     3476k mem      0 io tbl             
 +root       0.00 cpu     1831k mem      0 io locale          
 +root       0.00 cpu     3182k mem      0 io nroff           *
 +root       0.00 cpu     4186k mem      0 io troff           
 +root       0.00 cpu     3674k mem      0 io grotty          
 +root       0.00 cpu     3496k mem      0 io groff           
 +root       0.00 cpu     3182k mem      0 io nroff           
 +root       0.00 cpu     4804k mem      0 io man             *
 +root       0.00 cpu     1827k mem      0 io sleep           
 +root       0.00 cpu     6378k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu    11276k mem      0 io pgrep           
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     6528k mem      0 io ksmtuned        *
 +root       0.00 cpu     6344k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu        0k mem      0 io kworker/dying   *
 +root       0.00 cpu     2426k mem      0 io less            
 +root       0.01 cpu     4770k mem      0 io man             
 +root       0.00 cpu     1994k mem      0 io dump-acct       
 +root       0.00 cpu     1827k mem      0 io sleep           
 +root       0.00 cpu     6378k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu    11276k mem      0 io pgrep           
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     6528k mem      0 io ksmtuned        *
 +root       0.00 cpu     6344k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     2094k mem      0 io dump-acct       
 +root       0.00 cpu        0k mem      0 io kworker/dying   *
 +root       0.00 cpu        0k mem      0 io kworker/dying   *
 +root       0.00 cpu        0k mem      0 io kworker/dying   *
 +root       0.00 cpu     1827k mem      0 io sleep           
 +root       0.00 cpu     6378k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu    11276k mem      0 io pgrep           
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     6528k mem      0 io ksmtuned        *
 +root       0.00 cpu        0k mem      0 io kworker/dying   *
 +root       0.00 cpu     6344k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu    93648k mem      0 io gdbus           
 +root       0.00 cpu     6888k mem      0 io bash            *
 +root       0.00 cpu     5410k mem      0 io lastcomm        
 +root       0.00 cpu     1827k mem      0 io sleep           
 +root       0.00 cpu     6378k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu    11276k mem      0 io pgrep           
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     6528k mem      0 io ksmtuned        *
 +root       0.00 cpu     6344k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     4570k mem      0 io man             *
 +root       0.00 cpu     4804k mem      0 io man             *
 +root       0.00 cpu     4804k mem      0 io man             *
 +root       0.00 cpu     4804k mem      0 io man             *
 +root       0.00 cpu     4804k mem      0 io man             *
 +root       0.00 cpu     4804k mem      0 io man             *
 +root       0.00 cpu     4844k mem      0 io man             *
 +root       0.00 cpu     4186k mem      0 io preconv         
 +root       0.00 cpu     3476k mem      0 io tbl             
 +root       0.00 cpu     1831k mem      0 io locale          
 +root       0.00 cpu     3182k mem      0 io nroff           *
 +root       0.00 cpu     4186k mem      0 io troff           
 +root       0.00 cpu     3706k mem      0 io grotty          
 +root       0.00 cpu     3496k mem      0 io groff           
 +root       0.00 cpu     3182k mem      0 io nroff           
 +root       0.00 cpu     4804k mem      0 io man             *
 +root       0.00 cpu     1827k mem      0 io sleep           
 +root       0.00 cpu     6378k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu    11276k mem      0 io pgrep           
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     6528k mem      0 io ksmtuned        *
 +root       0.00 cpu     6344k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     2426k mem      0 io less            
 +root       0.00 cpu     4770k mem      0 io man             
 +root       0.00 cpu     4604k mem      0 io man             *
 +root       0.00 cpu     4760k mem      0 io man             *
 +root       0.00 cpu     4804k mem      0 io man             *
 +root       0.00 cpu     4804k mem      0 io man             *
 +root       0.00 cpu     4804k mem      0 io man             *
 +root       0.00 cpu     4804k mem      0 io man             *
 +root       0.00 cpu     4804k mem      0 io man             *
 +root       0.00 cpu     4844k mem      0 io man             *
 +root       0.00 cpu     4186k mem      0 io preconv         
 +root       0.00 cpu     3476k mem      0 io tbl             
 +root       0.00 cpu     1831k mem      0 io locale          
 +root       0.00 cpu     3182k mem      0 io nroff           *
 +root       0.00 cpu     4186k mem      0 io troff           
 +root       0.00 cpu     3700k mem      0 io grotty          
 +root       0.00 cpu     3496k mem      0 io groff           
 +root       0.00 cpu     3182k mem      0 io nroff           
 +root       0.00 cpu     4804k mem      0 io man             *
 +root       0.00 cpu     1827k mem      0 io sleep           
 +root       0.00 cpu     6378k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu    11276k mem      0 io pgrep           
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     6528k mem      0 io ksmtuned        *
 +root       0.00 cpu     6344k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     1827k mem      0 io sleep           
 +root       0.00 cpu     6378k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu    11276k mem      0 io pgrep           
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     6528k mem      0 io ksmtuned        *
 +root       0.00 cpu     6344k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu        0k mem      0 io kworker/dying   *
 +root       0.00 cpu     2426k mem      0 io less            
 +root       0.00 cpu     4770k mem      0 io man             
 +root       0.00 cpu     5312k mem      0 io sa              
 +root       0.00 cpu     3034k mem      0 io grep            
 +root       0.00 cpu     5312k mem      0 io sa              
 +root       0.00 cpu     1827k mem      0 io sleep           
 +root       0.00 cpu     6378k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu    11276k mem      0 io pgrep           
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu     6528k mem      0 io ksmtuned        *
 +root       0.00 cpu     6344k mem      0 io awk             
 +root       0.00 cpu     6658k mem      0 io ksmtuned        *
 +root       0.00 cpu        0k mem      0 io kworker/dying   *
 +</code>
 +
 +===Options de la commande===
 +
 +Les options de cette commande sont :
 +
 +<code>
 +[root@centos8 ~]# sa --help
 +
 +                Usage: sa [ options ] [ file ]
 +                
 +                options: [-abcdfiljkmnprstuDKP] [-v <num>] [--version] [--help]
 +                [--other-acct-file <name>] [--other-usracct-file <name>]
 +                [--print-seconds] [--dont-read-summary-files] [--debug]
 +                 [--separate-times] [--other-savacct-file <name>] [--percentages]
 +                 [--print-ratio] [--print-users] [--merge] [--user-summary] [--group-summary]
 +                [--list-all-names] [--not-interactive] [--threshold <num>]
 +                 [--sort-ksec] [--sort-tio] [--sort-sys-user-div-calls] [--sort-avio]
 +                 [--sort-cpu-avmem] [--sort-num-calls] [--sort-real-time] [--ahz hz]
 +       [--show-paging] [--show-paging-avg]
 +
 +The system's default process accounting files are:
 +
 +  raw process accounting data: /var/account/pacct
 +      summary by command name: /var/account/savacct
 +          summary by username: /var/account/usracct
 +</code>
 +
 +====1.12 - La Commande ac====
 +
 +Cette commande vous renseigne sur les statistiques des temps de connexion des utilisateurs :
 +
 +<code>
 +[root@centos8 ~]# ac -p
 +        trainee                            247.51
 +        total      247.51
 +
 +[root@centos8 ~]# ac -d
 +Jun 16  total        6.41
 +Jun 17  total       12.09
 +Jul 19  total        6.94
 +Jul 20  total       38.95
 +Sep  2  total        0.03
 +Sep  3  total        0.01
 +Sep  5  total       11.01
 +Oct  9  total        0.92
 +Oct 11  total        4.17
 +Oct 12  total        5.45
 +Nov  7  total       19.40
 +Nov  8  total       54.12
 +Nov  9  total       67.32
 +Nov 10  total        8.48
 +Nov 11  total        3.01
 +Today   total        9.23
 +</code>
 +
 +===Options de la commande===
 +
 +Les options de cette commande sont :
 +
 +<code>
 +[root@centos8 ~]# ac --help
 +
 +Usage: ac [OPTION] ...
 +
 +OPTIONS:
 +  -d, --daily-totals        Print totals for each day
 +  -p, --individual-totals   Print time totals for each user
 +  -f, --file <file>         Read from <file>
 +  --complain                Print errors for whatever problem
 +  --reboots                 Count the time between login and reboot
 +  --supplants               Count the time between logins on the terminal
 +  --timewarps               Count the time between login and time warp
 +  --compatibility           Shortcut for --reboots --supplants --timewarps
 +  -a, --all-days            Do not skip days without login activity
 +  --tw-leniency <value>     Set the time warp leniency <value> in seconds
 +  --tw-suspicious <value>   Set the time warp suspicious <value> in seconds
 +  --print-year              Print year when displaying dates
 +  --print-zeros             Don't suppress zeros in category totals
 +  --debug                   Print verbose internal information
 +  -V, --version             Show version and exit
 +  -h, --help                Show help and exit
 +
 +The system's default login accounting file is /var/log/wtmp.
 </code> </code>
  
Ligne 3023: Ligne 4399:
  
 ----- -----
-Copyright © 2022 Hugh Norris.+Copyright © 2023 Hugh Norris.
Menu