ubuntu 16.04 zsh: command not found: lspci, lsmod
程序员文章站
2022-07-12 13:22:42
...
今天在输入:
lspci | grep -i nvidia
lsmod | grep nvidia
出现了下面的错误:
zsh: command not found: lspci
zsh: command not found: lsmod
这时候只需要输入下面的命令:
apt-get install pciutils
apt-get install kmod
就行了,我的输出信息为:
➜ darknet git:(master) ✗ lspci | grep -i nvidia
00:07.0 VGA compatible controller: NVIDIA Corporation GM200GL [Tesla M40] (rev a1)
00:08.0 VGA compatible controller: NVIDIA Corporation GM200GL [Tesla M40] (rev a1)
➜ darknet git:(master) ✗ lsmod | grep nvidia
nvidia_uvm 741376 16
nvidia_drm 45056 0
nvidia_modeset 1110016 1 nvidia_drm
nvidia 14344192 2393 nvidia_modeset,nvidia_uvm
ipmi_msghandler 49152 1 nvidia
drm_kms_helper 151552 2 cirrus,nvidia_drm
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 found. https://*.com/questions/38229579/docker-container-lsmod-not-found