Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Bash Menu for System Information
- # Made by Ludwig Van'
- PS3='What kind of information about your PC are you looking for?: '
- options=("Basic system information" "lshw - hardware information shorted" "lshw - full details" "CPU details" "Storage devices information" "USB controllers information" "lspci - usb ports, graphic cards, sound..." "disk partitions details" "BIOS information" "Quit")
- select opt in "${options[@]}"
- do
- case $opt in
- "Basic system information")
- echo "Basic system information"
- uname -a
- break
- ;;
- "lshw - hardware information shorted")
- echo "lshw - hardware information shorted"
- lshw -short
- break
- ;;
- "lshw - full details")
- echo "lshw - full details"
- lshw
- break
- ;;
- "CPU details")
- echo "CPU details"
- lscpu
- break
- ;;
- "Storage devices information")
- echo "Storage devices information"
- lsblk
- break
- ;;
- "USB controllers information")
- echo "USB controllers information"
- lsusb
- break
- ;;
- "lspci - usb ports, graphic cards, sound...")
- echo "lspci - usb ports, graphic cards, sound..."
- lspci
- break
- ;;
- "disk partitions details")
- echo "disk partitions details"
- fdisk -l
- break
- ;;
- "BIOS information")
- echo "BIOS information"
- dmidecode -t bios
- break
- ;;
- "Quit")
- break
- ;;
- *) echo invalid option;;
- esac
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement