zoukankan      html  css  js  c++  java
  • Linux上的设备管理器

    一般windows上我们用它自带的“设备管理器”来查看,管理,安装,卸载驱动。

    那么问题来了,Linux上用什么命令来看呢?

    可以用:

    lshw   lsusb lspci lsmod

    查看特定模块、驱动的详细信息

     modinfo [device name]

    显示已加载的模块

    $ less /proc/modules

    当然,lsmod命令显示已加载模块输出的格式更好。

    安装,和卸载模块/驱动:

     一般来说, 所有的Linux内核模块(驱动)都储存在/lib/modules/$(uname -r) 的模块目录下。

    可以用以下命令来查看不同设备的驱动程序:

    ls /lib/modules/$(uname -r)/kernel/drivers/

    安装模块(驱动):

    modprobe -v [module name]      (这个命令需要.ko文件被放在/lib/modules/$(uname -r) 目录下,才能找到,不然会报                     FATAL: Module XXX.ko not found.的错误,注意,模块名不能加后缀.ko)

     insmod [module file name]          example: insmod /path/myDriver.ko                     (不建议使用这个命令,因为不解决驱动依赖问题)

    删除模块(驱动):

    modprobe -r [module name]

    rmmod [module name]

    references:

    http://woshixiguapi.blog.163.com/blog/static/1924996920111121396494/

    http://www.linuxquestions.org/questions/linux-software-2/command-to-know-the-list-of-drivers-installed-on-my-linux-system-948384/

    http://xmodulo.com/how-to-check-graphics-card-on-linux.html

    http://www.cyberciti.biz/faq/howto-display-list-of-modules-or-device-drivers-in-the-linux-kernel/

    http://www.cyberciti.biz/faq/add-remove-list-linux-kernel-modules/

  • 相关阅读:
    [BZOJ 2457] 双端队列 (思维)
    字符串划分 [Bitset 字符串Dp]
    POJ2947 Widget Factory [高斯消元]
    数字串 [分治+哈希+扩展KMP]
    POJ3590 The shuffle Problem [置换+dp]
    P1970 花匠 [权值线段树优化dp, NOIp2003, Y]
    UVA306 Cipher[循环节]
    POJ3270 Cow Sorting [置换]
    POJ 3128 Leonardo's Notebook[置换群幂相关]
    VMware 11 设置U盘启动,总是找不到physicalDrive1
  • 原文地址:https://www.cnblogs.com/foohack/p/4091272.html
Copyright © 2011-2022 走看看