Here’s the table of contents:

  1. To be added
  2. Get remaining time (time limit) of a job
  3. Sort jobs by id

To be added

sinfo

Get remaining time (time limit) of a job

squeue -h -j jodid -o %L

Sort jobs by id

squeue -a | sort -t, -nk1

See!