Skip to content

Instantly share code, notes, and snippets.

@darcyliu
Created April 28, 2024 22:57
Show Gist options
  • Save darcyliu/484db6a5297a78071652734a911e5ac1 to your computer and use it in GitHub Desktop.
Save darcyliu/484db6a5297a78071652734a911e5ac1 to your computer and use it in GitHub Desktop.
# OS release info
uname -s
uname -r
uname -n
# Start up time
uptime
# CPU info
cat /proc/stat
cat /proc/cpuinfo
# Memory info
cat /proc/meminfo
# File system info
cat /proc/filesystems
cat /proc/mounts
df --output=target,size,used -k
# Disk info
ls /sys/block
cat /sys/block/**/device/model
cat /sys/block/**/device/vendor
cat /sys/block/**/size
cat /proc/diskstats
# Network Info
cat /proc/net/dev
cat /sys/class/net/**/address
ip --json address
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment