List disks and CPUs installed on Linux and FreeBSD

Unix

24 Feb 2015

List disks and CPUs installed on Linux and FreeBSD

Preston Garrison 0 Comments

Here is a simple way to check what drives are installed in a system

 

Linux:

#list disks
lshw -class disk

#list cpus
lscpu

#show memory
free -m

 

 FreeBSD

#list disks
camcontrol devlist

#list cpus
sysctl hw.model hw.machine hw.ncpu

#show memory
sysctl hw.physmem


Preston Garrison