-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcheat_sheet
68 lines (52 loc) · 1.69 KB
/
cheat_sheet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Transfer file
rsync -avz --progress compress/NewYork [email protected]:/root/final_project/
ssh -i ~/.ssh/server1 [email protected]
Google cloud storage
上传
gsutil -m cp -r n4_bias gs://dissertation_wzy/n4_bias
下载
gsutil -m cp -r gs://dissertation_wzy/n4_bias n4_bias
Ali cloud
./ossutil appendfromfile local_file_name oss://bucket/object
scp -r /home/work/sourcedir [email protected]:/home/work/ #拷贝文件夹,加-r参数
scp [email protected]:/home/zw1y18/dissertation/output/loss2.png .
scp [email protected]:/home/zw1y18/dissertation/logging/
登录gcloud
gcloud auth login
切换根用户
sudo -s
重定向
sudo bash -c "curl https://fsl.fmrib.ox.ac.uk/fsldownloads/fslinstaller.py>fslinstaller.py"
GPU服务器
ssh -i ~/.ssh/server1 [email protected]
export PATH=/usr/local/fsl/bin:$PATH
export FSLWISH=/usr/local/fsl/bin/fslwish
export FSLDIR=/usr/local/fsl
export FSLMACHINELIST=
export FSLTCLSH=/usr/local/fsl/bin/fsltclsh
export FSLREMOTECALL=
export FSLGECUDAQ=cuda.q
export FSLOUTPUTTYPE=NIFTI_GZ
export FSLMULTIFILEQUIT=TRUE
PATH=/usr/local/fsl/bin:$PATH
FSLWISH=/usr/local/fsl/bin/fslwish
FSLDIR=/usr/local/fsl
FSLMACHINELIST=
FSLTCLSH=/usr/local/fsl/bin/fsltclsh
FSLREMOTECALL=
FSLGECUDAQ=cuda.q
FSLOUTPUTTYPE=NIFTI_GZ
FSLMULTIFILEQUIT=TRUE
$ export LC_ALL=C
ssh-keygen -R
sudo killall coreaudiod
sudo gsutil -m cp -r . gs://dissertation_wzy/registration
gsutil -m cp -r gs://dissertation_wzy/auto-seg.sh .
学校服务器
查看数量
watch nvidia-smi
上传gpu任务
sbatch -p gpu --gres=gpu:1 <batch_script>
https://hpc.soton.ac.uk/redmine/projects/iridis-5-support/wiki/Job_Submission
celery -A mysite worker -l info