modif style

This commit is contained in:
Tenzing Kandang 2025-11-12 21:19:26 +01:00
parent 87e7d468cb
commit 76ac71caa0

View File

@ -1,14 +1,37 @@
#!/bin/bash #!/bin/bash
DIR=/opt/grabber DIR=/opt/grabber
cat /etc/passwd > $DIR/passwd.file echo "======================" |tee -a /dev/stderr
cat /etc/group > $DIR/group.file echo " Script Grabber " |tee -a /dev/stderr
lspci -nn > $DIR/lspci.cmd echo "=================="|tee -a /dev/stderr
lsusb > $DIR/lsusb.cmd
apt list --installed > $DIR/apt.cmd echo "--------------" |tee -a /dev/stderr
systemd-analyze > $DIR/systemd-analyze.cmd echo "les périphériques USB" |tee -a /dev/stderr
systemd-analyze blame | head -n 10 > $DIR/systemd-blame.cmd echo "---------------------" |tee -a /dev/stderr
lscpu > $DIR/lscpu.cmd echo "résultat commande lsusb :" |tee -a /dev/stderr
lshw-gtk > $DIR/lshw-gtk.cmd lsusb 1>$DIR/lsusb.cmd
inxi > $DIR/inxi.cmd
lsmem > $DIR/lsmem.cmd echo "------------------"
echo "le processeur"
echo "---------------------"
echo "résultat commande lscpu :"
lscpu 1>$DIR/lscpu.cmd
echo "--------------"
echo "la RAM"
echo "--------------"
echo "résultat commande lsmem"
lsmem 1>$DIR/lsmem.cmd
#cat /etc/passwd > $DIR/passwd.file
#cat /etc/group > $DIR/group.file
#lspci -nn > $DIR/lspci.cmd
#lsusb > $DIR/lsusb.cmd
#apt list --installed > $DIR/apt.cmd
#systemd-analyze > $DIR/systemd-analyze.cmd
#systemd-analyze blame | head -n 10 > $DIR/systemd-blame.cmd
#lscpu > $DIR/lscpu.cmd
#lshw-gtk > $DIR/lshw-gtk.cmd
#inxi > $DIR/inxi.cmd
#lsmem > $DIR/lsmem.cmd