LINUXOPOLIS ( 2019-08-10 ) ~ ChecksteemCreated with Sketch.

in #linux5 years ago (edited)

CHECK

A short summary of building a personal Linux environment.
Published with SteemPeak

ScreenshotScreenshot by Willi Glenz

#!/bin/bash
# check help kernel cpu disk hardware host network 
# Wrapper for neofetch inxi, nmap, vnstat, lshw and ip
# Version 3

clear
neofetch

while [ -n "$1" ]
do
    case "$1" in
       "help")
          echo
          head -n4 "$0"
          echo
          ;;
       "kernel")
          echo -n "Kernel Release: "; uname -r
          echo -n "Kernel Version: "; uname -v
          echo
          ;;
       "cpu")
          echo
          inxi -f
          echo
          ;;
       "disk")
          echo
          inxi -Dp
          echo
          ;;
       "hardware")
          echo
          sudo lshw -short
          echo
          ;;
       "host")
          echo
          inxi -v2
          sudo lshw -short
          echo
          ;;
       "network")
          echo
          inxi -i
          echo
          nmap --iflist
          echo
          ip neigh
          echo
          vnstat
          echo
          ;;
    esac
    shift
done

exit
Sources     $ man neofetch inxi nmap vnstat ip lshw
            $ man echo head

home ~ previous

Sort:  

This post had received 5.00% upvote from @steemitportugal account!
Vote for @steemitportugal to Witness. Your vote is very important to us!
Visit our WebSite www.steemitportugal.com (tutorials,news...)
Thank you very much.
Click here to vote
steemitportugal
Delegation for daily voting: 10SP-25SP-50SP-100SP-250SP-500SP-1000SP

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.034
BTC 63750.99
ETH 3130.22
USDT 1.00
SBD 3.95