1. 因为进程长时间运行,想在后台运行并且退出时不中断运行
nohup [命令] &
若把输出保存起来: out.log为指定的输出文件名,不指定默认文件是nohup.out
nohup [命令] > out.log &
2. 查看1中的log文件
tail -f out.log
3. 查看当前CPU使用情况
top -H
4. 查看GPU使用情况
nvidia-smi
若想使用情况随着时间更新,
watch -n 5 nvidia-smi
每5秒执行一次 nvdia-smi
5. 查看当前用户的进程
ps
6. 查看所有进程
ps -aux
7. 查找当前目录下的txt文件
find -name ".txt"
8. 计算当前目录下有多少个txt文件
find -name ".txt" | wc -l
9. 激活环境
source activate [enviroment]
10.