分享

如何硬件当前使用的驱动?

朵儿爸 2021-10-17 17:17:34 发表于 原创 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 1 1628
以查看网卡驱动为例说明

1、首先使用lspci 获取网卡的pci号

  1. root@langchao-PC:~# lspci |grep -i eth
  2. 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
复制代码
2、再使用-v -s参数查询其使用的驱动

  1. root@langchao-PC:~# lspci -s 02:00.0 -v
复制代码
Image


其中kernel mouules :r8168 即为该机器使用的网卡模块

sudo  rmmod  r8168        ##卸载模块

sudo  modprobe  r8168  ##加载模块

版权说明:论坛帖子主题均由合作第三方提供并上传,若内容存在侵权,请进行举报

已有(0)人评论

跳转到指定楼层
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系在线客服