2023年2月21日

摘要: 0、遍历当前目录对指定名称的文件进行操作 find /path/to/dir -type f -name "a.txt" -execdir cp {} 'b.txt' \; 1、kill指定条件的进程 ps -ef | grep someone | awk '{ print $2 }' | xarg 阅读全文
posted @ 2023-02-21 14:30 gris 阅读(51) 评论(0) 推荐(0) 编辑

2022年3月2日

摘要: 将本地的ssh公钥添加到服务器的authorized_keys中。将本地的 ~/.ssh/id_rsa.pub 的文件内容,追加到集群管理节点的 ~/.ssh/authorized_keys,注意备份如果没有密钥可以生成一个:ssh-keygen -t rsa -b 4096 用户目录权限为 755 阅读全文
posted @ 2022-03-02 14:41 gris 阅读(62) 评论(0) 推荐(0) 编辑

2022年2月11日

摘要: git大文件报错: smudge filter lfs failedwarning: 克隆成功,但是检出失败。您可以通过 'git status' 检查哪些已被检出,然后使用命令'git checkout -f HEAD' 重试 解决方案:安装git-lfs sudo apt-get install 阅读全文
posted @ 2022-02-11 19:42 gris 阅读(1364) 评论(0) 推荐(0) 编辑
摘要: pip install -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com pandas 或者 gedit ~/.config/pip/pip.conf [global]index-url=http:/ 阅读全文
posted @ 2022-02-11 19:15 gris 阅读(888) 评论(0) 推荐(0) 编辑

2021年12月1日

摘要: python -m site python -m site -help USER_SITE='~/anaconda3/envs/test/lib/python3.7/site-packages' 阅读全文
posted @ 2021-12-01 19:21 gris 阅读(134) 评论(0) 推荐(0) 编辑

2021年9月18日

摘要: sudo apt-get install libopenblas-dev 阅读全文
posted @ 2021-09-18 23:54 gris 阅读(340) 评论(0) 推荐(0) 编辑

2021年4月2日

摘要: 删除<None><None>镜像 docker rmi $(docker images -f "dangling=true" -q) 如果删除时出现了image is being used by stopped container的错误就先使用一下命令再执行删除指令: docker ps -a | 阅读全文
posted @ 2021-04-02 21:54 gris 阅读(248) 评论(0) 推荐(0) 编辑

2021年1月11日

摘要: 1 安装依赖 ## Install dependencies sudo apt -y install build-essential checkinstall cmake pkg-config yasm sudo apt -y install git gfortran sudo apt -y ins 阅读全文
posted @ 2021-01-11 12:28 gris 阅读(178) 评论(0) 推荐(0) 编辑

2021年1月10日

摘要: ubuntu开机后无法进入图形界面解决办法: 进入命令行模式,执行下面的命令; rm /etc/X11/xorg.conf cp /etc/X11/xorg.conf.failsafe /etc/X11/xorg.conf 阅读全文
posted @ 2021-01-10 22:26 gris 阅读(651) 评论(0) 推荐(0) 编辑

2021年1月6日

摘要: 转自https://www.cnblogs.com/silentdoer/p/13044305.html 1、 从Ubuntu官网http://cn.ubuntu.com/download/下载系统的iso文件 用来制作的U盘需要是FAT32格式的,可以通过格式化U盘更改(注意,如果U盘已经写入过隐 阅读全文
posted @ 2021-01-06 23:13 gris 阅读(2497) 评论(0) 推荐(0) 编辑

导航