determine the total number of jobs (pending and active) at a given moment https://stackoverflow.com/a/68370063 squeue -u $USER -h -t pending,running -r -O "state" | uniq -c