Skip to content

Instantly share code, notes, and snippets.

@freegenie
Created October 19, 2012 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freegenie/3917284 to your computer and use it in GitHub Desktop.
Save freegenie/3917284 to your computer and use it in GitHub Desktop.
hardware specs on linux
#!/bin/bash
startline() {
echo ""
echo ""
echo "---------- $1 -------------------------"
echo ""
}
startline "CPU"
cat /proc/cpuinfo | grep 'model name'
startline "PERIFERIHCE"
lspci
startline "HARD DISK"
sudo fdisk -l | grep GB
startline "CD/DVD"
wodim -devices
startline "MEMORIA"
free -m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment