Linux: get info about notebook battery

Below you can find a very simple shell script that gets information about every battery present in your notebook and shows a summary.

  1. create a new file (es: /usr/local/bin/battery.sh)
  2.  paste inside the new file the following code
  3. save the file
  4. make the file executable (es: chmod +x /usr/local/bin/battery.sh)
  5. use the script (from a terminal  execute: /usr/local/bin/battery.sh)

 

 

Leave a comment