当前位置: 首页 > news >正文

静态网站模板下载怎么做免费的网站商城

静态网站模板下载,怎么做免费的网站商城,帮助做职业规划的网站,内容网站 如何做采集lspci 命令用于显示 Linux 系统上的设备和驱动程序 当在个人电脑或服务器上运行 Linux 时#xff0c;有时需要识别该系统中的硬件。lspci 命令用于显示连接到 PCI 总线的所有设备#xff0c;从而满足上述需求。该命令由 pciutils 包提供#xff0c;可用于各种基于 Linux 和…lspci 命令用于显示 Linux 系统上的设备和驱动程序 当在个人电脑或服务器上运行 Linux 时有时需要识别该系统中的硬件。lspci 命令用于显示连接到 PCI 总线的所有设备从而满足上述需求。该命令由 pciutils 包提供可用于各种基于 Linux 和 BSD 的操作系统。 基础用法 当普通用户运行 lspci 时显示的信息可能会受到访问权限限制。使用 sudo 运行该命令可以提供完整的信息。 以下是家庭媒体中心电脑的一个示例。它是一台基于 AMD Phenom CPU 的系统具有 AMD 芯片组它还配备了 Atheros 无线控制器和 Nvidia 显卡。 仅运行 lspci 会列出 PCI 总线及其连接的设备。所有硬件设备都列有供应商、名称和型号等详细信息。 1. $ sudo lspci2. 00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] RS880 Host Bridge3. 00:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780 PCI to PCI bridge (ext gfx port 0)4. 00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 0)5. 00:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 1)6. 00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]7. 00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller8. 00:12.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller9. 00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller10. 00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller11. 00:13.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0 USB OHCI1 Controller12. 00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller13. 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 3c)14. 00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 IDE Controller15. 00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller16. 00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge17. 00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller18. 00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor HyperTransport Configuration19. 00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Address Map20. 00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor DRAM Controller21. 00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Miscellaneous Control22. 00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 10h Processor Link Control23. 01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GTX 650] (rev a1)24. 01:00.1 Audio device: NVIDIA Corporation GK107 HDMI Audio Controller (rev a1)25. 02:00.0 Network controller: Qualcomm Atheros AR9287 Wireless Network Adapter (PCI-Express) (rev 01)详细输出 添加 -v 选项会显示每个设备的详细信息可以使用 -vv 或 -vvv 来获取更多的设备细节。 在 -v 级别lspci 会显示所有设备的各种子系统和内存地址、中断请求IRQ编号和一些其他功能信息。输出信息会非常长。在系统上试一试吧。 使用 grep 过滤搜索 可能会需要缩小搜索范围。例如RPM Fusion 网站有安装 Nvidia 图形驱动程序的说明里面就首先使用了 grep 命令来定位显卡信息。下面是在笔记本电脑上得到的输出 1. $ sudo lspci | grep -e VGA2. 00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)3. $ sudo lspci | grep -e 3D4. 01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce MX130] (rev a2)下面LCTT 译注原文为 “above”应为作者笔误的 grep 命令在媒体中心 PC 上定位了一个 VGA 设备但没有显示 3D 设备。 1. $ sudo lspci | grep -e VGA2. 01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GTX 650] (rev a1)3. $ sudo lspci | grep -e 3D4. $按供应商 ID 搜索 还有另一种无需 grep 的方法可以使用。假设想确认一下此计算机是否有其他的 Nvidia 设备在此之前们还需要一些额外信息使用-nn选项显示的供应商和设备 ID 号。在媒体中心 PC 上此选项会给出 VGA 卡、供应商 ID 和设备 ID $ sudo lspci -nn | grep -e VGA01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107 [GeForce GTX 650] [10de:0fc6] (rev a1) 设备名称后的方括号内有用冒号分隔的数字即供应商和设备 ID。输出表明 Nvidia Corporation 制造的设备的供应商 ID 为 10de。 -d 选项用于指定供应商、设备或类 ID 的所有设备。以下是系统中的所有 Nvidia 设备保留 -nn 以解析供应商 ID 1. $ sudo lspci -nn -d 10de:2. 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107 [GeForce GTX 650] [10de:0fc6] (rev a1)3. 01:00.1 Audio device [0403]: NVIDIA Corporation GK107 HDMI Audio Controller [10de:0e1b] (rev a1)从输出中可以看到除了显卡之外还有一个 Nvidia 音频设备。实际上它们都属于同一张 Nvidia GeForce GTX 650 卡但这仍然是一个很好的示例。 内核模块 结合 PCI 硬件设备lspci 可以使用 -k 选项显示内核加载了哪些驱动程序模块。将此选项添加到 lspci 命令来查看有关 Nvidia 设备的信息。 1. $ sudo lspci -nn -k -d 10de:2. 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107 [GeForce GTX 650] [10de:0fc6] (rev a1)3. Subsystem: eVga.com. Corp. GK107 [GeForce GTX 650] [3842:2650]4. Kernel driver in use: nvidia5. Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia6. 01:00.1 Audio device [0403]: NVIDIA Corporation GK107 HDMI Audio Controller [10de:0e1b] (rev a1)7. Subsystem: eVga.com. Corp. GK107 HDMI Audio Controller [3842:2650]8. Kernel driver in use: snd_hda_intel9. Kernel modules: snd_hda_intel可以看到额外显示了两行正在使用的内核驱动程序 (Kernel driver in use) 和 内核模块 (Kernel modules)其中后者列出了可用于支持该设备的模块。 同步最新状态 新设备和供应商总是在不断迭代。如果看到显示为 unknown 的设备说明 PCI 设备 ID 数据库可能已过时。有两种方法可以检查更新。-Q 选项会使用 DNS 查询中央数据库当然这需要联网。 $ sudo lspci -Q还可以通过运行命令 update-pciids来更新本地 PCI ID 数据库。 1. $ sudo update-pciids2. Downloaded daily snapshot dated 2021-08-22 03:15:01获取 PCI 总线硬件设备信息的 7 个 Linux lspci 命令示例 【摘要】 lspci 命令可视为 ls pci 的组合功能。 lspci 将显示有关服务器中所有 PCI 总线的信息及有关连接到 PCI 和 PCIe 总线的所有硬件设备的信息如 以太网卡、RAID 控制器、视频卡等。 lspci 实用程序是 pciutils 软件包的一部分如果没有 pciutilis请将其安装在系统上如下所示。 \# yum install pciutils1. 默认用法 默认情况下它将显示所有设备信息如下所示。第一个字段是槽信息格式如下[domain:]bus:device.function 在这个例子中由于所有的域都是 0所以 lspci 不会显示域。 \# lspci 00:00.0 Host bridge: Intel Corporation 5500 I/O Hub to ESI Port (rev 13) 00:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 13) 00:09.0 PCI bridge: Intel Corporation 7500/5520/5500/X58 I/O Hub PCI Express Root Port 9 (rev 13) 00:14.0 PIC: Intel Corporation 7500/5520/5500/X58 I/O Hub System Management Registers (rev 13) 00:14.1 PIC: Intel Corporation 7500/5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 13) 00:14.2 PIC: Intel Corporation 7500/5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 13) 00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02) 00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92) 00:1f.0 ISA bridge: Intel Corporation 82801IB (ICH9) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801IB (ICH9) 2 port SATA Controller [IDE mode] (rev 02) 01:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20) 01:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20) 03:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2108 [Liberator] (rev 05) 06:03.0 VGA compatible controller: Matrox Electronics Systems Ltd. MGA G200eW WPCM450 (rev 0a)注意在下面的所有示例中我们将通过从上面的列表中选择几个设备来仅显示部分输出。 2. 以不同格式转储 PCI 信息 如果要将 lspci 命令的输出传递给 shell 脚本可能需要使用 -m 选项或 -mm 选项如下所示。 当要查看子系统信息时此选项也很有帮助。例如对于 RAID 控制器默认输出只是说正在使用 LSI Logic RAID 控制器。但是以下输出显示子系统即 DELL PERC H700 集成 RAID 控制器系统。 \# lspci -m 00:00.0 Host bridge Intel Corporation 5500 I/O Hub to ESI Port -r13 Dell PowerEdge R610 I/O Hub to ESI Port 00:09.0 PCI bridge Intel Corporation 7500/5520/5500/X58 I/O Hub PCI Express Root Port 9 -r13 00:14.0 PIC Intel Corporation 7500/5520/5500/X58 I/O Hub System Management Registers -r13 00:1a.0 USB controller Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 -r02 Dell PowerEdge R610 USB UHCI Controller 00:1f.0 ISA bridge Intel Corporation 82801IB (ICH9) LPC Interface Controller -r02 Dell PowerEdge R610 82801IB (ICH9) LPC Interface Controller 00:1f.2 IDE interface Intel Corporation 82801IB (ICH9) 2 port SATA Controller [IDE mode] -r02 -p8f Dell PowerEdge R610 SATA IDE Controller 01:00.0 Ethernet controller Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet -r20 Dell PowerEdge R610 BCM5709 Gigabit Ethernet 03:00.0 RAID bus controller LSI Logic / Symbios Logic MegaRAID SAS 2108 [Liberator] -r05 Dell PERC H700 Integrated 06:03.0 VGA compatible controller Matrox Electronics Systems Ltd. MGA G200eW WPCM450 -r0a Dell PowerEdge R610 MGA G200eW WPCM4503. 以树格式输出 -t 选项将以树格式显示输出其中包含有关总线的信息以及设备如何连接到这些总线如下所示。输出将仅使用数字 ID。 \# lspci -t -[0000:00]--00.0-01.0-[01]---00.0| \-00.1-03.0-[02]---00.0| \-00.1-07.0-[04]---09.0-[05]---14.0-14.1-1c.0-[03]----00.0-1d.0-1e.0-[06]----03.0-1f.04. 详细的设备信息 如果想查看特定设备的详细信息请使用 -v 获取更多信息。这将显示有关所有设备的信息。该命令的输出会很长需要向下滚动查看相应的部分。 对于详细程度的附加级别可以使用 -vv 或 -vvv。 在以下示例中我仅给出了 RAID 控制器设备的输出。 \# lspci -v03:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2108 [Liberator] (rev 05)Subsystem: Dell PERC H700 IntegratedFlags: bus master, fast devsel, latency 0, IRQ 16I/O ports at fc00 [size256]Memory at df1bc000 (64-bit, non-prefetchable) [size16K]Memory at df1c0000 (64-bit, non-prefetchable) [size256K]Expansion ROM at df100000 [disabled] [size256K]Capabilities: [50] Power Management version 3Capabilities: [68] Express Endpoint, MSI 00Capabilities: [d0] Vital Product DataCapabilities: [a8] MSI: Enable- Count1/1 Maskable- 64bitCapabilities: [c0] MSI-X: Enable Count15 Masked-Capabilities: [100] Advanced Error ReportingCapabilities: [138] Power Budgeting ?Kernel driver in use: megaraid_sasKernel modules: megaraid_sas5. 在输出中显示设备代码 如果要显示 PCI 供应商代码并且设备代码仅显示为数字请使用 -n 选项。这不会查找 PCI 文件以获取数字的相应值。 \# lspci -n 01:00.1 0200: 14e4:1639 (rev 20) 02:00.0 0200: 14e4:1639 (rev 20) 02:00.1 0200: 14e4:1639 (rev 20) 03:00.0 0104: 1000:0079 (rev 05) 06:03.0 0300: 102b:0532 (rev 0a)如果要同时显示描述和编号请使用选项 -nn如下所示。 # lspci -nn 01:00.0 Ethernet controller [0200]: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet [14e4:1639] (rev 20) 03:00.0 RAID bus controller [0104]: LSI Logic / Symbios Logic MegaRAID SAS 2108 [Liberator] [1000:0079] (rev 05) 06:03.0 VGA compatible controller [0300]: Matrox Electronics Systems Ltd. MGA G200eW WPCM450 [102b:0532] (rev 0a) ..6.查找特定设备 当知道 domainslot.func 格式中的插槽号时可以查询特定设备如下所示。在下面的示例中我们没有指定域号因为它是 0可以省略。 \# lspci -s 03:00.0 03:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2108 [Liberator] (rev 05)当知道 vendor:device 格式的设备编号时可以查询特定设备如下所示。 \# lspci -d 1000:0079 03:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2108 [Liberator] (rev 05)如果只知道供应商 ID 或设备 ID则可以省略另一个 ID。例如以下两个命令都将返回与上述相同的输出。 lspci -d:0079 lspci -d 10007.显示内核驱动程序 当想知道将处理特定设备操作的内核模块的名称时这非常有用。请注意此选项仅适用于 Kernel 2.6 及更高版本。 \# lspci -k 00:1f.2 IDE interface: Intel Corporation 82801IB (ICH9) 2 port SATA Controller [IDE mode] (rev 02)Subsystem: Dell PowerEdge R610 SATA IDE ControllerKernel driver in use: ata_piixKernel modules: ata_generic, pata_acpi, ata_piix 02:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)Subsystem: Dell PowerEdge R610 BCM5709 Gigabit EthernetKernel driver in use: bnx2Kernel modules: bnx2 03:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2108 [Liberator] (rev 05)Subsystem: Dell PERC H700 IntegratedKernel driver in use: megaraid_sasKernel modules: megaraid_sas via: lspci 命令用于显示 Linux 系统上的设备和驱动程 作者Alan Formy-Duval LCTT 原创编译Linux中国 荣誉推出 2021-09-17 https://opensource.com/article/21/9/lspci-linux-hardware 获取 PCI 总线硬件设备信息的 7 个 Linux lspci 命令示例-云社区-华为云 Tiamo_T 发表于 2022/09/08 16:41:32 https://bbs.huaweicloud.com/blogs/374466
http://www.w-s-a.com/news/816343/

相关文章:

  • 物流企业网站建设方案招标网站有哪些
  • 网站建设服务中企动力建筑工程网络进度计划备注填写范例
  • 电子商务网站开发与建设试卷php网站开发专业
  • 运城网站制作路90江苏省网站备案系统
  • 唐山做企业网站实体门店管理系统
  • 网站优化推广教程深圳网站建设世纪前线
  • 网站建设专家哪家好兰州网络推广执行
  • 广东住房和城乡建设厅网站王芃增加网站收录
  • 北京网站建设手机app电子商务网红营销的劣势
  • 网站 营销型wordpress获取4条文章标题
  • 浦东区建设工程监督网站建立全国统一的突发事件信息系统
  • 做网站需要基础吗重庆市造价信息网
  • 我要建设公司网站大连培训网站建设
  • 网站建设校长信箱设计方案小程序报价开发
  • 电子网站建设ppt模板营销策划方案怎么写?
  • 什么网站收录排名最高济南能源建设网站
  • 深圳移动网站建设公司价格桂林做网站哪家公司好
  • 互联网网站名字网站合作建设合同
  • 舟山高端网站设计广州优化排名推广
  • 哪个网站做免费广告好上海人才网站
  • cn域名做网站竞价推广代理
  • 省建设干部培训中心网站网站地图1 500 怎么做
  • 制作一个网站需要哪些人网站建设经营服务合同
  • 山东省住房和城乡建设厅官方网站网易发布广州
  • 长沙设计网站效果设计师灵感网站
  • 做网站php都用什么框架把asp.net写的网站别人怎么访问
  • 网站建设捌金手指下拉六正规的代运营公司
  • 自己申请网站空间冀州建网站
  • 哈尔滨旅游团购网站建设江苏建设工程建设网
  • 在郑州做网站茶叶网站建设网页设计制作