列出Linux中的所有设备 [英] List all devices in linux
本文介绍了列出Linux中的所有设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
你们能否拥有源代码或获取Linux中的设备列表环境的方法.
谢谢您的回答,谢谢高级.
Hi everyone,
Could you guys have a sourcecode or the way to get the list of devices in linux environment.
Any answer will be appreciated, thanks in advanced.
推荐答案
这些是您列出的分区:
代码:parted -l <br/> 和
代码:fdisk -l <br/> 都一样.
和
代码:cat/proc/partitions
有关分区的信息少于fdisk -l和parted -l.
代码:lsusb
显示有关系统中USB总线及其连接的设备的信息.
代码:lspci
打印有关系统中所有PCI总线和设备的详细信息.
These are list your partitions :
code : parted -l
and
code : fdisk -l
are the same.
and
code : cat /proc/partitions
have less information about partitions than fdisk -l and parted -l.
code : lsusb
displaying information about USB buses in the system and the devices connected to them.
code : lspci
prints detailed information about all PCI buses and devices in the system.
^ ]应该会为您提供帮助.
One of these answers[^] should help you.
这篇关于列出Linux中的所有设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文