cd / 根目录
rm C -r 删除C这个非空目录
rmdir C 删除空目录

代码交叉跳转:

在程序根目录下ctags-R,ctrl+]即可实现跳转,ctrl+T跳转回去

统计当前文件夹文件数:ls -l|grep “^-“| wc -l
grep “^d”表示目录,”^-“表示文件

虚拟机挂载目录:

开机手动挂载:mount -t vboxsf shares /mnt/Share

putty:

利用putty传输文件:pscp svd_parse.py 974102371@172.31.111.23:
2017133026

远程训练:https://www.cnblogs.com/godarrow/p/7771839.html

nohup python3 -u main.py –input_height 96 –output_height 48 –dataset faces –crop True –train True –epoch 10 &>nohup.out&

nohup python3 -u word2vec_parse3.py &> word2vec_parse3.out&

指定GPU:

os.environ[‘CUDA_VISIBLE_DEVICES’] = ‘1’

服务器校园网登录:

curl -d “DDDDD=296375&upass=***&0MKKey=” https://drcom.szu.edu.cn

conda:

conda create -n law python=3.6 创建一个名为tf的py3.6环境
conda activate tf
conda deactivate
source activate python2 切换环境
conda install –yes –file requirements.txt

查看GPU信息:

nvidia-smi 查看gpu版本信息
cat /usr/local/cuda/version.txt 查看cuda版本信息
https://tensorflow.google.cn/install/source 查看gpu版本对应


Shiroha