Erick Matsen (@ematsen, matsen.group)
After this course, you should:
I’ll give a tour of the FH computational environment during class.
Here is an outline of the tour:
grabnodetop, htopml SAMtoolsml fhDev.snapshot/fh/fastcp to-delete /fh/scratch/delete30/matsen_e/ (replace matsen_e with your PI’s name once you have one)sbatchscancelsqueue -u $USERtail -f slurm-output-file.outsacct and variants, e.g. sacct -u $USER -o JobID,JobName%30,Elapsed,State,MaxRSS,AllocCPUs,MaxVMsizehitparadeHere is a recorded video with some of the same content.
Shell variables are variables that are associated with your shell session.
If you want to use their value, you write them with a $ at the beginning.
They are typically written in all caps.
For example, the $PWD variable will always have your current working directory, just as if you had executed pwd.
We can learn the value of variables using echo.
For example, try the following commands:
echo $PWDecho $HOSTecho $USERIf you want to know more (e.g. how to set a variable), here are two excellent resources describing variables in shell (in fact, in Bash, but most people use Bash).
grabnodehtophitparadeThe slow.sh script in this lecture05 directory is the same one that I demoed in the video.
sbatchtail -fsqueue -u $USERscancelsacct