The HW info script.
Posted: 13 Oct 2015, 11:19
Inxi gives a lot of good HW info, but sometimes we have the need to dig deeper or simply get additional info.
It may be to get an overview of all the partitions/HW that are not mounted etc etc.
So I made me a hardcore info script that provides such info and put it in the startup in my Tmux.
This is the menu:

It comes in handy and as you can see it calls inxi too so it covers the needs.All hardware will generate a html page in ~/AllHW.html that you can open and read with your browser in a user friendly format.
Here is the script:
Copy it and save it to a file called binfo.sh (for berserk info) or whateveryouwant.sh and chmod it to execute: Using very common names like "info.sh" is not a good idea since they may be "taken".
After that you can execute it with
If you do not use sudo you will need to run this script as root for most of the functions.
If you want to execute the script without the hassle of ./binfo.sh and simply start it by typing binfo then you can symlink it to you local bin like this
Restart bash (or zsh)
or
and the script will start whenever you type binfo in a terminal. No need to navigate to your scripts directory and no need to type extensions.
http://showterm.io/7285973e58a8efaa4716a
It may be to get an overview of all the partitions/HW that are not mounted etc etc.
So I made me a hardcore info script that provides such info and put it in the startup in my Tmux.
This is the menu:

It comes in handy and as you can see it calls inxi too so it covers the needs.All hardware will generate a html page in ~/AllHW.html that you can open and read with your browser in a user friendly format.
Here is the script:
Copy it and save it to a file called binfo.sh (for berserk info) or whateveryouwant.sh and chmod it to execute: Using very common names like "info.sh" is not a good idea since they may be "taken".
Code: Select all
chmod -x binfo.shAfter that you can execute it with
Code: Select all
./binfo.shIf you do not use sudo you will need to run this script as root for most of the functions.
If you want to execute the script without the hassle of ./binfo.sh and simply start it by typing binfo then you can symlink it to you local bin like this
Code: Select all
ln -s /home/myname/skripts/binfo.sh /usr/local/bin/binfoRestart bash (or zsh)
Code: Select all
source ~/.bashrcor
Code: Select all
source ~/.zshrcand the script will start whenever you type binfo in a terminal. No need to navigate to your scripts directory and no need to type extensions.
http://showterm.io/7285973e58a8efaa4716a
