kardeco

viewCPU.sh

Jun 18th, 2021
849
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. ###################################
  3. # Version..: 0.1                  #
  4. # Date.....: 18/06/2021           #
  5. # Author...: Frederico Siena      #
  6. # Revision.: -                    #
  7. ###################################
  8. apt -y install bc 2> /dev/null
  9.  
  10. echo "Fabricante:" $(dmidecode -s system-manufacturer);
  11. echo "Modelo....:" $(dmidecode -s system-product-name);
  12. echo "Serial#...:" $(dmidecode -s system-serial-number);
  13. echo "RAM.......:" $(cat /proc/meminfo | grep MemTotal      | awk '{print $2/1024/1024}' | bc)$(echo " GB");
  14. echo "CPU Model.:" $(cat /proc/cpuinfo | grep 'model name'  | uniq)|awk '{print $1" "$2" "$6" "$7" "$8" "$9" "$10" "$11}';
  15. echo "CPU's.....:" $(cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l);
  16. echo "Cores.....:" $(cat /proc/cpuinfo | grep "core id"     | sort | uniq | wc -l)
RAW Paste Data