Skip to content

Instantly share code, notes, and snippets.

@bilalhusain
Created March 27, 2012 09:24
Show Gist options
  • Save bilalhusain/2214329 to your computer and use it in GitHub Desktop.
Save bilalhusain/2214329 to your computer and use it in GitHub Desktop.
basic system information on a modern linux machine
#!/bin/bash -ex
#hardware
arch
grep --after 3 'model name' /proc/cpuinfo
lshw -quiet -short
# current status
vmstat -SM # unit in MB
df --human-readable
uptime
date
# distro
lsb_release --all
uname --all
# machine identifier on network
hostname --long
hostname --all-ip-address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment