-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_aliases
97 lines (73 loc) · 3.09 KB
/
.bash_aliases
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# aliases to make life easier
alias ps='/bin/ps -u `whoami`'
alias pscpu='ps a --format pcpu,user,comm,etime --sort pcpu | sort -gr | head -n 25'
alias path='echo $PATH'
alias rr='rm `find . -name "*~"`'
alias ssh='/usr/bin/ssh -Y -o ServerAliveInterval=5 -o ServerAliveCountMax=1'
alias hgrep='history|grep'
alias findsortdate='{ name=$(cat -); find -name $name -exec stat -c "%y/ %n" {} \; | sort -k1; }<<<'
# ls aliases
alias ls='/bin/ls -p --color=auto'
alias ll='ls -la'
alias lssize='ll -Sr'
alias lstime='ll -tr'
alias lslen="ls | perl -e 'print sort { length(\$a) <=> length(\$b) } <>'"
# apt aliases
alias aup='sudo apt update'
alias afu='sudo apt --purge --autoremove full-upgrade'
alias arm='sudo apt --purge --autoremove remove'
alias ain='sudo apt --purge --autoremove install'
# qpdfview for viewing portable document format
alias qpdfview='masterpdfeditor4 '
alias qv='qpdfview '
alias acroread='qpdfview '
# speed things up a little: no interactive (re)moves
#unalias mv
#unalias rm
# aliases related to tex
alias rmtex='rm -rf auto *.idx *.log *.aux *.dvi *.tex~ *.bbl *.blg *.out *.rel *.toc *.lof *.lot *.fff *.ttt *.ind *.ilg'
# vncserver on lnx-rad-03
alias startvncserver='vncserver :9${HOSTNAME##*0} -name "${HOSTNAME}-${USER}" -geometry 1362x832 -depth 24'
alias killvncserver='vncserver -kill :9${HOSTNAME##*0}'
# aliases related to matlab and R
alias matlabshell='/usr/local/matlab/r2018a/bin/matlab -nodesktop -nosplash'
alias matlab='matlabshell;stty echo'
alias R='/usr/bin/R --no-save'
# aliases related to Groningen
alias inf='ssh [email protected]'
# cluster login
alias neugrid='ssh 130.37.210.243'
# 03 -> 04 login and v.v.
alias log03='ssh 10.144.40.47'
alias vnc03='vncviewer 10.144.40.47:93'
alias log04='ssh 10.144.40.48'
alias vnc04='vncviewer 10.144.40.48:94'
# aliases related to Cambridge
alias bcni='ssh -L5903:bcni3:5923 [email protected]'
alias camvnc='vncviewer :03'
# alias for the dev1 computer in the research cloud
alias radt='ssh amwink@rng-img-dev1'
# aliases related to the file system
alias anna='cd /anna/users/${USER}${PWD##*${USER}}'
alias haso='cd /haso/users/${USER}${PWD##*${USER}}'
# aliases related to NCAgrid
alias nca='ssh [email protected]'
# aliases for the ANW server (menno/anand)
alias anw="ssh [email protected]"
# aliases for the radiology cloud (viktor/silvia)
alias cloud="ssh [email protected]"
# aliases for the alzheimer-analyse (betty)
alias aa="ssh [email protected]"
# aliases for the iac computer (remko) -- clinical studies
alias iac="ssh amwink@sp-ap-iaclnx02"
# aliases for the xnat computer (epad) -- clinical studies
alias xnat="ssh [email protected]"
# aliases for the Martijn's GPU computer (remko) -- deep learning
alias gpuhost="ssh [email protected]"
# aliases for the deep learning servers
alias dl1="ssh [email protected]"
alias dl2="ssh [email protected]"
# sync home dir with lnx-rad-04
alias synchome='time rsync -T /tmp -rRulpogtmzhv . amwink@lnx-rad-04:/home/projects/AD_Niftis/work/amwink/oldhome'
# sync home dir with usb disc
alias synchomeUSB='time rsync -T /tmp -rRulpogtmzhv . /mnt/usb/amwink'