Skip to content

Instantly share code, notes, and snippets.

@ArthurDelannoyazerty
Last active June 24, 2025 07:26
Show Gist options
  • Save ArthurDelannoyazerty/d7a39b9f54d72e52040b7b18664f0a82 to your computer and use it in GitHub Desktop.
Save ArthurDelannoyazerty/d7a39b9f54d72e52040b7b18664f0a82 to your computer and use it in GitHub Desktop.

RAM

Free RAM

free -h

               total        used        free      shared  buff/cache   available
Mem:           125Gi        12Gi       109Gi       186Mi       4.9Gi       113Gi
Swap:          4.0Gi       154Mi       3.8Gi

RAM info

# sudo
lshw -c memory
dmidecode -t memory

CPU

# CPU info
lscpu

# Number CPU
nproc
getconf _NPROCESSORS_ONLN 

OS

uname -a

Disk

Disk space

# see total disk space
df -h

# see used space for all subfolders
du -h | sort -h
# see only huge enough file (the Gigabytes ones)
du -h . | grep '[0-9\.]\+G' | sort -h
# See total used space in local folder
du -hs

# pretty df
duf

Disk type

lsblk
ls -lF /dev/disk/by-id/
lshw -class disk -class storage
findmnt 

Network

Port open

lsof -i
netstat -tuplen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment