Saturday, May 27, 2023

Script para extrair informacoes do sistema Linux

 #!/bin/sh
##./sysInfo.sh
# chmod +X sysInfo.sh

echo " ----------------- START " >> s
date >> s
echo " ----------------- cat /etc/os-release" >> s
cat /etc/os-release >> s
echo " ----------------- uname -a " >> s
uname -a >> s
echo " ----------------- du ~ " >> s
du ~ >> s
echo " ----------------- lsmod >> " >> s
lsmod >> s
echo " ----------------- ps aux " >> s
ps aux >> s
echo " ----------------- top -b -n1 " >> s
top -b -n1 >> s
echo " ----------------- cat /etc/passwd " >> s
cat /etc/passwd >> s
#echo " ----------------- dmesg (root) " >> s
#dmesg >> s
echo " ----------------- END " >> s
gedit s
echo " -----------------  " >> s

No comments:

Post a Comment

How to Create GEOMETRIC FIGURES in Gimp

How to Create GEOMETRIC FIGURES in Gimp Go to: Filters - render - Gfig https://youtu.be/oS8mCRe9dnM?si=vuf62mQEnmOyP851