Created
February 25, 2026 23:05
-
-
Save umer936/f32705503e65ad4a7c986d7fd071f5a3 to your computer and use it in GitHub Desktop.
Quick_Specs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "=== CPU ===" | |
| lscpu | egrep 'Model name|CPU\(s\)|Thread|Core|Socket|Virtualization' | |
| echo -e "\n=== MEMORY ===" | |
| free -h | |
| sudo dmidecode -t memory | egrep -i 'Size|Speed' | grep -v "No Module Installed" | |
| echo -e "\n=== STORAGE ===" | |
| lsblk -o NAME,SIZE,TYPE,MOUNTPOINT | |
| echo -e "\nSSD/HDD check (0=SSD, 1=HDD):" | |
| for d in /sys/block/sd*/queue/rotational; do echo "$d: $(cat $d)"; done | |
| echo -e "\n=== GPU ===" | |
| lspci | grep -i vga | |
| echo -e "\n=== NETWORK ===" | |
| ip -o link show | awk -F': ' '{print $2}' | |
| echo -e "\n=== SYSTEM SUMMARY ===" | |
| if command -v inxi >/dev/null 2>&1; then | |
| inxi -Fxz | |
| else | |
| echo "Install inxi for detailed summary: sudo apt install inxi -y" | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment