Created
November 30, 2016 09:30
-
-
Save ictlyh/ccbc3baf45a7fa503d5e41e25defb16e to your computer and use it in GitHub Desktop.
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 | |
# some useful commands to collect system infomation. | |
# Reference: | |
# http://www.tecmint.com/commands-to-collect-system-and-hardware-information-in-linux/ | |
# http://www.binarytides.com/linux-commands-hardware-info/ | |
# Check kernel,OS,CPU | |
uname -a | |
# Check CPU info | |
cat /proc/cpuinfo | |
# number of cores | |
nproc | |
# Check PCI devices | |
lspci -tv | |
# Check Disk | |
cat /proc/loadavg | |
# Check network address | |
ifconfig | |
# Memory Hardware info | |
dmidecode -t memory | |
# Disk | |
lsblk | |
# Disk partition | |
fdisk -l | |
# Network interface hardware info | |
lspci |grep -i 'eth' | |
# All hardware info | |
dmidecode -q |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment