Skip to content

Instantly share code, notes, and snippets.

@estysdesu
Last active July 21, 2019 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save estysdesu/1b07eb411d5f484d7000675fc0f09f16 to your computer and use it in GitHub Desktop.
Save estysdesu/1b07eb411d5f484d7000675fc0f09f16 to your computer and use it in GitHub Desktop.
[Shell: hardware info] #memory #architecture #cpu
##### CPU #####
cat /proc/cpuinfo
##### arch (ARCHITECTURE) #####
# arch may denote the mode your computer is running in, but not necessarily is an indicator of what it support
# https://superuser.com/questions/23214/why-does-my-mac-os-x-10-6-kernel-run-in-32-bit-mode
arch # i386/x86 denotes 32-bit, x86_64 denotes 64-bit, a few other variations
##### lscpu (ARCHITECTURE) #####
lscpu #x86[_64]
##### uname (SYSTEM INFO) #####
# -a: all
# -s/<>: kernel (default)
# -n: hostname
# -r: kernel release
# -m: machine hardware (x86[_64]) (architecture)
# -p: processor
# -i: platform (Macbook##,#)
# -o: operating system
uname -a
##### free (RAM AND SWAP/VRAM) #####
# -b: bytes
# -m: megabytes
# -g: gigabytes
free -g
##### lsusb (USB BUS) #####
# all usb peripherals (even if not "mounted", they show up here)
lsusb
##### lspci (PCI BUS) #####
# PCI buses contain video, network (ethernet), usb, etc. (all buses connected to motherboard?)
# -k: kernel driver and modules used
lspci
##### lsmod (KERNEL MODULES LOADED) #####
lsmod
##### PARTITIONING #####
# -l: list block devices
# <>: no args enters interactive --> typically where you go
# b: backup
# c: change name
# n: new
# i: info
# q: quit
# w: write
# r: recovery
# fdisk (MBR)
fdisk -l
# gdisk (GPT)
gdisk
# list devices
ls /dev/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment