基础命令
./ | ../ # 当前目录和上级目录 ls # 查看目录 cd # 进入路径 pwd # 当前路径 删除:rm *.out* # 删除包含.out的所有文件 移动:mv 文件 target_path # 移动文件到target路径
云服务器
ssh登录:ssh 用户名@IP地址 -p 端口号 激活环境:source activate 环境名 查询作业:squeue 取消作业:scancel 查看输出:tail -f 文件名 | cat 文件名 提交任务到服务器:sbatch --gpus=1 ./run.sh
保存py输出到指定文件
python 1.py > 1.txt # 保存1.py的输出到1.txt中 python 1.py >> 1.txt # 追加1.py的输出到1.txt中 cat 1.txt # 查看1.txt中的内容
其它操作
查看系统时间:date +%Y-%m-%d
| 未完待续... |



