Add these aliases in your ~/.bashrc
file. To use them, save the updated file and type . ~/.bashrc
to reload the bash file
- View all running jobs
-
alias qq="watch -n 0.1 'squeue -u ppmody -o \"%.10i %.9P %.24j %.8u %.2t %.10M %.5D %R\" ; echo -e \"\n\" ; squeue -p LKEBgpu,highmemgpu,gpu --sort=\"N,-i\" -o \"%.10i %.9P %.12j %.8u %.2t %.10M %.5D %.16R %.3C %.7m %b\"; echo -e \"\n\"; sinfo -a' "
-
- View resources within the cluster
-
alias qqq="scontrol -o show nodes |grep -e \"lkeb\" -e \"gpu.ai\" -e \"gpu\"| awk '{ print \$1, \$4, \$5, \$9, \$23, \$24, \$25}'"
-
- GPU performance
-
alias nvidia-perff="watch -n 0.1 nvidia-smi"
-
- GPU performance (with graphs)
- Firstly,
pip install nvitop
-
alias nvidia-perf="nvitop -m auto"
- Firstly,
- Disk/ usage
-
alias diskusage='du -Sh | sort -rh | head -5' alias driveusage='df -ah .'
-
- Displaying conda env with username and hostname
- e.g. "(hansegmentation) [ppmody@res-hpc-lo02]$"
-
export PS1="($CONDA_DEFAULT_ENV) [\u@\h]$ "