疑问:linux怎样下怎么查看当前pci总线频率

疑问:linux怎样下怎么查看当前pci总线频率,第1张

用 lshw 命令即可看到各种硬件参数。比如,我的电脑用这个命令返回的内容中包括:

*-pci:0

description: PCI bridge

product: Intel Corporation

vendor: Intel Corporation

physical id: 1c

bus info: pci@0000:00:1c.0

version: 35

width: 32 bits

clock: 33MHz

capabilities: pci pciexpress msi pm normal_decode bus_master cap_list

configuration: driver=pcieport

resources: irq:16 ioport:1000(size=4096) memory:91100000-911fffff

*-network DISABLED

description: Ethernet interface

product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller

vendor: Realtek Semiconductor Co., Ltd.

physical id: 0

bus info: pci@0000:01:00.0

logical name: enp1s0

version: 15

serial: 30:65:ec:a3:e2:f3

size: 10Mbit/s

capacity: 1Gbit/s

width: 64 bits

clock: 33MHz

capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation

configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half latency=0 link=no multicast=yes port=MII speed=10Mbit/s

resources: irq:308 ioport:1000(size=256) memory:91104000-91104fff memory:91100000-91103fff

*-pci:1

description: PCI bridge

product: Intel Corporation

vendor: Intel Corporation

physical id: 1c.1

bus info: pci@0000:00:1c.1

version: 35

width: 32 bits

clock: 33MHz

capabilities: pci pciexpress msi pm normal_decode bus_master cap_list

configuration: driver=pcieport

resources: irq:17 memory:91000000-910fffff

*-network

description: Wireless interface

product: QCA9565 / AR9565 Wireless Network Adapter

vendor: Qualcomm Atheros

physical id: 0

bus info: pci@0000:02:00.0

logical name: wlp2s0

version: 01

serial: c8:ff:28:48:04:ed

width: 64 bits

clock: 33MHz

capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless

configuration: broadcast=yes driver=ath9k driverversion=4.4.0-51-generic firmware=N/A ip=192.168.43.133 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn

resources: irq:17 memory:91000000-9107ffff memory:91080000-9108ffff

这个片段中我们可用看到我的电脑有两个PCI总线(PCI:0和PCI:1),其中“clock: 33MHz”表明总线频率位33兆。

ls 指令是Linux下最常用的指令之一。

ls 命令将每个由 Directory 参数指定的目录或者每个由 File 参数指定的名称写到标准输出,以及您所要求的和标志一起的其它信息。

如果不指定 File 或 Directory 参数, ls 命令显示当前目录的内容。

运用举例:

1.列出具体文件 #ls -al //这个最常用,可是往往又不彻底符合要求,

2.列出一切子目录的文件:#ls -R //上个指令仅仅列出了本目录下的一切目录和文件,可是目录下的文件不会循环的列出。

3.若是文件过多一屏看不完,怎么办?并且,关于想找到许多文件中的某个文件的姓名。

扩展资料:

ls 命令将每个由 Directory 参数指定的目录或者每个由 File 参数指定的名称写到标准输出,以及您所要求的和标志一起的其它信息。如果不指定 File 或 Directory 参数, ls 命令显示当前目录的内容。

在互斥对中指定多个选项不看成错误。每对中最后一个指定的选项确定输出格式。

缺省情况下,ls 命令按照文件名的字母顺序显示所有信息。整理顺序由环境变量 LANG 或 LC_COLLATE 环境变量确定。在 AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs 中的 "National Language Support Overview for Programming" 包含更多细节。

参考资料:百度百科-LS


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/7302867.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-04
下一篇2023-04-04

发表评论

登录后才能评论

评论列表(0条)

    保存