Use Aliases for often used commands
In .bashrc
# Use aliases for often used commands
## Slurm
alias sk='squeue -u $USER'
alias sr='screen -r'
alias jobstatus="sacct -P -bn -j"
##LSF
export LSB_BJOBS_FORMAT="jobid:7 job_name:35 stat:5 start_time:10 queue:7 run_time:5 runtimelimit " # min_req_proc effective_resreq"
alias bj=bjobs
# Display table
# tsv file.tsv
alias tsv="column -t -s $'\t'"
# there is also tsv-utils
# get info about running job
# sshow 2344464
alias sshow="scontrol show jobid"
# set mask so others of the same group can read and write your files:
umask g+rw,o-rwx
## Snakemake
lastlog () {
ls $1.snakemake/log/*.log | tail -n1
}
I use a .screenrc
to visually mark my screens.