Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pauricthelodger/a96ad15a737b0b760f4c to your computer and use it in GitHub Desktop.
Save pauricthelodger/a96ad15a737b0b760f4c to your computer and use it in GitHub Desktop.
Gets the Product Name and Serial Number of your device.
#!/bin/sh
# Print out the Product Name and Serial Number of your device
sudo dmidecode | grep -e "System Information" -A 5 | sed 's/^\t//' | awk '{ if (NR == 3 || NR == 5) { print }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment