-
Notifications
You must be signed in to change notification settings - Fork 0
/
list-of-useful-bash-commands.txt
41 lines (30 loc) · 1.17 KB
/
list-of-useful-bash-commands.txt
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
# Kyle Billings
# 6/27/23
# here is a list of useful bash commands for my records
# turn of error chime
# place this in ~/.bash_alias then soruce the .bashrc
bind 'set bell-style none'
# ssh with setting the idle time of the call
ssh -o ServerAliveInterval=600 [path to server]
# we can also update the ssh config with
"Host *
ServerAliveInterval 600
"
# for hpc use you can use sed to rplace line of thecode to fit your submission script need
# then just pip the output into the job sumbssion stuff
# exmaple
sed 's/TEMPNAME/REALNAME/g' config.slurm | [commnad to submit]
# trajecotry files are large at times
# you can make a symbloic link to the file that for loos at least
# functions as the file
ln -s [name of traj] [name you want thelink to have]
# testing the link
dcdinfo [new link name]
# for srun you can use a loop if you give it
srun --exclusive --ntasks 1 -c 1 [command] &
# sequentally run a series of comands
{ command1; command2; } # independat of the sucess of each command
# && needs command to work fully
# to run an order of coomand in a srun line we have to
# 1 save the commands to a varalbe
# 2 in the srun [options ] echo $[name of variable]