LINUXOPOLIS # 2019-11-07 ~ INXI

3개월 전

INXI

Building a Linux habitat
Published with SteemPeak
home ~ previous

ScreenshotScreenshot by Willi Glenz

SUMMARY

02 INXI ................................................................ 2019-11 new
01 bash-script ......................................................... 2019-06



#02

02 INXI
homepage .............................................................. smxi.org
git-hub ................................................... github.com/smxi/inxi
documentation ........................................... smxi.org/docs/inxi.htm


01 BASH-SCRIPT
#!/bin/bash
# check [-? host cpu network disk] 
# Wrapper for inxi, nmap vnstat and ip
#

clear

while [ -n "$1" ]
do
   case "$1" in
      "-?" )
         echo
         head -n4 "$0"
         echo
         ;;
      "host" )
         echo
         inxi -v7
         echo
         ;;
      "cpu" )
         echo
         inxi -f
         echo
         ;;
      "disk" )
         echo
         inxi -Dp
         echo
         ;;
      "network" )
         echo
         inxi -i
         echo
         nmap --iflist
         echo
         ip neigh
         echo
         vnstat
         echo
         ;;
   esac
   shift
done

exit
Manpages    $ man inxi nmap ip vnstat
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
STEEMKR.COM IS SPONSORED BY
ADVERTISEMENT