Skip to Content
Linux クックブック、第 2 版
book

Linux クックブック、第 2 版

by Carla Schroder
May 2025
Intermediate to advanced
544 pages
7h 23m
Japanese
O'Reilly Media, Inc.
Content preview from Linux クックブック、第 2 版

第10章. コンピュータのハードウェアに関する詳細情報を得る

この作品はAIを使って翻訳されている。ご意見、ご感想をお待ちしている:translation-feedback@oreilly.com

Linuxには、コンピューター内のハードウェア・コンポーネントの詳細情報を得るための優れたユーティリティーがいくつか用意されている。マシンの前に座れば、ケースを開けることなく、数分でコンポーネントのインベントリとその仕様を知ることができる。

これらのユーティリティは、テクニカルサポートに詳細な情報を提供したり、デバイスの正しいドライバを発見したり、Linuxでサポートされているかどうかを調べたりするのに便利だ。メーカーが自社製品に関する正確な情報をタイムリーに提供してくれるとはカウントできない。例えば、メーカーが型番を変えずにチップセットを変更することはよくあることで、Linuxで問題なく動作していたデバイスが、Linuxでは動作しないデバイスに変わってしまうこともある。 幸いなことに、現代ではLinuxのサポートは以前よりもずっと手間が減っている。

理想的なのは、コンピュータのマニュアル、少なくともマザーボードのマニュアルも持っていることだ。マザーボードのマニュアルは通常、写真や図、役立つ情報が満載で、オンラインで発見できるはずだ。

この章では、lshw(ハードウェアのリスト)、lspci(PCIのリスト)、hwinfo(ハードウェア情報)、lsusb(USBのリスト)、lscpu(CPUのリスト)、lsblk(ブロックデバイスのリスト)コマンドについて学ぶ。

lshwと hwinfoが最も完全な情報を提供している。

lshwは、メモリ構成、ファームウェアバージョン、メインボード構成、CPUバージョンとスピード、キャッシュ構成、バススピード、ハードウェアパス、接続デバイス、パーティション、ファイルシステムを報告する。

hwinfoは、コンピュータのモニタ情報、RAID アレイ、メモリ構成、CPU 情報、ファームウェア、メインボード構成、キャッシュ、バス速度、接続デバイス、パーティション、ファイルシステムをレポートする。

lsusbは、USBバスとそれに接続されたデバイスをプローブする。

lspciは、PCIバスとそれに接続されたデバイスをプローブする。

lsblk 物理ドライブ、パーティション、ファイルシステムのリストを表示する。

lscpuは、あなたのCPUに関する情報をリストアップする。

10.1 lshwでハードウェア情報を収集する

問題

システム上のハードウェアのインベントリーと各アイテムの詳細が欲しい。

解決策

lshw(Hardware Lister)コマンドをオプションなしで試し、出力をテキスト・ファイルに保存する:

$ sudo lshw | tee hardware.txt
duchess
    description: Laptop
    product: Latitude E7240 (05CA)
    vendor: Dell Inc.
    version: 00
    serial: 456ABC1
    width: 64 bits
[...]

ファームウェア、ドライバ、機能、シリアル番号、バージョン番号、バス情報を含む数百行の出力が得られるだろう。lshwは、ワイヤレスプリンタやBluetooth経由で接続されたスマートフォンなど、ワイヤレスネットワークインタフェース経由で接続されたデバイスを調査することはできないが、ワイヤレスとBluetoothのインタフェースを報告する。 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Pythonデータサイエンスハンドブック 第2版 ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習

Pythonデータサイエンスハンドブック 第2版 ―Jupyter、NumPy、pandas、Matplotlib、scikit-learnを使ったデータ分析、機械学習

Jake VanderPlas, 菊池 彰
Bash クックブック第2版

Bash クックブック第2版

Carl Albing, JP Vossen
行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

Stephen Wendel, 武山 政直, 相島 雅樹, 反中 望, 松村 草也

Publisher Resources

ISBN: 9798341650091