Cluster commands

Often I find myself running jobs on the cluster and I can never remember the basic commands. So here’s some useful commands that you can use to run jobs on the cluster.

*** note that I’m running jobs on Simon Fraser University’s (SFU) cluster and I have no idea if these will work on your specific configuration ***

Assume your userid is billybob
Assume you have a cluster script called test.pbs

To submit your job

qsub test.pbs


To see what jobs you have in queue

qstat -u billybob | grep Q


To see what jobs you have running

qstat -u billybob | grep R


To see what jobs you have completed

qstat -u billbob | grep C


To kill your job

qdel yourJobId

for example,

qdel 123456789

Questions/comments? If you just want to say thanks, consider sharing this article or following me on Twitter!