Skip to content

Instantly share code, notes, and snippets.

@rferreiraperez
Last active July 30, 2024 08:57
Show Gist options
  • Save rferreiraperez/0ec4a58a6872b7c4226b1592ddc186ad to your computer and use it in GitHub Desktop.
Save rferreiraperez/0ec4a58a6872b7c4226b1592ddc186ad to your computer and use it in GitHub Desktop.

SYSTEM INFORMATION

Operating System Information

Check the Operating System Version

lsb_release -a

Check the Operating System Information

hostnamectl

Check Kernel Version

uname -r

Hardware Information

Check CPU Information, such as Number of Cores, Frequency, and Manufacturer

lshw -class processor

Check Hardware Information

lshw

Check Memory Information

free -h

Check PCI Devices

lspci

Check USB Devices

lsusb

Network Information

Check Network Information

ifconfig

Display Active Internet Connections

netstat -tuln

Filesystem Information

Check Filesystem Information

df -h

Check Disk Usage

du -sh /*

Check Mounted Filesystems

mount | column -t

Process and Service Information

Check Process Information

ps -ef

Check Service Information

systemctl status

List All Services and Their Status

systemctl list-units --type=service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment