LoginSignup
0
1

More than 5 years have passed since last update.

Linuxでデバイス情報を取得する

Last updated at Posted at 2018-07-17

環境変えて動かなかったときとかこういうのあると楽ですよね。

筆者環境

  • Ubuntu18.04

上記環境で動作するのを確認しました、デフォルトで入っていないコマンドがあったら各自でインストールしてください。

ディストリビューション

$ cat /etc/lsb-release

マザーボード

$ dmidecode -t baseboard | grep -e "Manufacturer" -e "Product Name"

CPU

$ cat /proc/cpuinfo | grep -e "processor" -e "model name"

メモリ

$ cat /proc/meminfo | grep "Mem"

オーディオ

$ lspci | grep "Audio device"

イーサネット

$ lspci | grep "Ethernet controller"

GPU

$ lspci | grep "VGA"
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1