Quantcast
Channel: Commands by matthewbauer
Viewing all articles
Browse latest Browse all 25

What Type of Computer Do You Have?

$
0
0
$ cat /sys/devices/virtual/dmi/id/board_name

Prints the type of computer you have.

I think this should be used more in distros and other applications because it is so easy to get. This can also be asked by tutorials as an easy way to get your base hardware.

Some alternatives:

sudo dmidecode -s system-product-name

and

sudo smbios-sys-info-lite | sed -n 's/^Product Name: *\(.*\)/\1/p'

commandlinefu.com

Diff your entire server config at ScriptRock.com


Viewing all articles
Browse latest Browse all 25

Trending Articles