随笔分类 - Linux
摘要:在跑Caffe、TensorFlow、pytorch之类的需要CUDA的程序时,强行Kill掉进程后发现显存仍然占用,这时候可以使用如下命令查看到top或者ps中看不到的进程,之后再kill掉: fuser -v /dev/nvidia* 1 接着杀掉显示出的进程(有多个): kill -9 123
阅读全文
摘要:sudo apt update sudo apt install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubun
阅读全文
摘要:下载whl https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04/ 从这个连接里下载对应的whl pip pip install wxPython-4.1.1-cp38-cp38-linux_x86_64.whl 缺
阅读全文
摘要:备份原始source.list cp /etc/apt/sources.list /etc/apt/sources.list.back 更新sources内容 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe
阅读全文
摘要:解决方法: https://github.com/gatieme/LDD-LinuxDeviceDrivers/tree/master/study/driver/force_rmmod 使用前流程 下载01_driver文件夹 make force_rmmod 模块 通过modname制定待卸载驱动
阅读全文
摘要:1.打开/关闭终端方法: ctrl+alt+t(新建终端), shift+ctrl+t(新建标签), shift+ctrl+n(新建一个文件) exit(关闭终端) 2.基础操作命令 序列 命令 作用 01 ls 查看当前文件夹下的内容 ls: -l展示详细信息,-a展示隐藏文件(Linux下(.)
阅读全文