Useful commands

Author

Chengkun Li

Published

November 12, 2024

Modified

November 13, 2024

Squeue

Check the status of submitted slurm jobs.

squeue -u $USER --format="%.18i %.9P %.8j %.8u %.8T %.10M %.20S %.9l %.6D %R %.10m"

For convenience, you could set the default by writing the following lines in your .bashrc or .bash_profile and then simply call squeue.

alias squeue='squeue -u $USER'
export SQUEUE_FORMAT="%.18i %.9P %.8j %.8u %.8T %.10M %.20S %.9l %.6D %R %.10m"

See the squeue manual for more options.