zip 压缩
1 | zip -r weights.zip /home/model/weights |
-r
表示递归
scp 传文件
1 | scp -r /home/cuiruochen/model/weighs.zip root@shi.kongfei.life:22:/home/root/model/weights.zip |
-r
代表递归
anaconda 删除环境
1 | # 激活环境(如果不在环境中) |
nohup
后台运行程序并重定向输出
使用 nohup
指令后台运行程序并读取 nohup.out
文件
后台运行
1 | nohup sh your_bash_file.sh & |
读取后台运行的程序
1 | tail -f nohup.out |
后台运行并输出重定向
1 | nohup sh your_command.sh > output 2>&1 & |
hexo 博客上传
1 | hexo cl |
查看 linux 版本
1 | lsb_release -a |
程序运行到指定位置退出
1 | import sys |
或
1 | exit(0) |
显示硬盘容量和已使用容量
1 | # 查看整体硬盘容量和已使用容量 |