CPU counts, Free memory, the Number of Disks and Free Space

I didn’t know some of these things on Linux until today. Shame on me. I’m going to summarize it here.

How to get number of CPUs?

$ lscpu

$ cat /proc/cpuinfo

How many disks on a system?

$ sudo fdisk -l

$ lsblk -S

$ lsblk -d

Free memory?

$ free -h

Free Diskspace?

$ df -h

Author: admin

A software engineer in greater Seattle area

Leave a Reply

Your email address will not be published. Required fields are marked *