1. add the following line to the ~/.bash_profile file

export SQUEUE_FORMAT="%.7i %9P %35j %.8u %.2t %.12M %.12L %.5C %.7m %.4D %R"

2. activate it

source ~/.bash_profile

Note:

  • the letters above represent job ID, partition, job name, user, status, total time, remaining time, number of CPU, required memory, node number, and some notes, respectively
  • the number represents the length of occupied space
  • “%.” means align right and “%” means align left
  • reference: https://slurm.schedmd.com/squeue.html