[slurm-users] How to short work folder in `squeue`

Loris Bennett loris.bennett at fu-berlin.de
Tue Jan 9 04:00:17 MST 2018

刘科 <specter119 at gmail.com> writes:

> Dear slrum developers:
> I alias squeue to squeue -u $(whoami) -o "%.10i %.10P %.20j %.2t %.10M %.9l %.6D %R %Z". Now it shows the full path of working dir, but it seems too long to show all the useful messages in online.
> Is there any way to shorten the $HOME to ~?
> Thanks in advance.

It's a bit of a hack, but how about

squeue -u $(whoami) -o "%.10i %.10P %.20j %.2t %.10M %.9l %.6D %R %Z" | sed -e 's%/home/[^/]\+/*%~/%'




Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin         Email loris.bennett at fu-berlin.de

More information about the slurm-users mailing list