当前位置:   article > 正文

ubuntu 16.04 zsh: command not found: lspci, lsmod_lsmod: command not found

lsmod: command not found

今天在输入:

  1. lspci | grep -i nvidia
  2. lsmod | grep nvidia

出现了下面的错误:

  1. zsh: command not found: lspci
  2. zsh: command not found: lsmod

这时候只需要输入下面的命令:

  1. apt-get install pciutils
  2. apt-get install kmod

就行了,我的输出信息为:

  1. ➜ darknet git:(master) ✗ lspci | grep -i nvidia
  2. 00:07.0 VGA compatible controller: NVIDIA Corporation GM200GL [Tesla M40] (rev a1)
  3. 00:08.0 VGA compatible controller: NVIDIA Corporation GM200GL [Tesla M40] (rev a1)
  1. ➜ darknet git:(master) ✗ lsmod | grep nvidia
  2. nvidia_uvm 741376 16
  3. nvidia_drm 45056 0
  4. nvidia_modeset 1110016 1 nvidia_drm
  5. nvidia 14344192 2393 nvidia_modeset,nvidia_uvm
  6. ipmi_msghandler 49152 1 nvidia
  7. drm_kms_helper 151552 2 cirrus,nvidia_drm
  8. drm 360448 5 ttm,drm_kms_helper,cirrus,nvidia_drm

 

参考文献

[1].lspci command not found. https://www.linuxquestions.org/questions/linux-newbie-8/lspci-command-not-found-418455/

[2].Docker container: lsmod not foundhttps://stackoverflow.com/questions/38229579/docker-container-lsmod-not-found

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/65295
推荐阅读
相关标签
  

闽ICP备14008679号