modif style
This commit is contained in:
parent
87e7d468cb
commit
76ac71caa0
45
grabber.sh
45
grabber.sh
@ -1,14 +1,37 @@
|
||||
#!/bin/bash
|
||||
DIR=/opt/grabber
|
||||
|
||||
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
|
||||
echo "======================" |tee -a /dev/stderr
|
||||
echo " Script Grabber " |tee -a /dev/stderr
|
||||
echo "=================="|tee -a /dev/stderr
|
||||
|
||||
echo "--------------" |tee -a /dev/stderr
|
||||
echo "les périphériques USB" |tee -a /dev/stderr
|
||||
echo "---------------------" |tee -a /dev/stderr
|
||||
echo "résultat commande lsusb :" |tee -a /dev/stderr
|
||||
lsusb 1>$DIR/lsusb.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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user