Complete Slurm keyboard shortcuts and commands reference — 17 shortcuts across 3 categories. Quick reference cheat sheet for Windows & Mac.
| Shortcut | Action | Description |
|---|---|---|
| sbatch script.sh | Submit batch job | Submit a job script for later execution. The script contains #SBATCH directives specifying resources like nodes, time, and memory. |
| srun --pty bash | Interactive session | Start an interactive allocation and open a shell directly on a compute node. |
| salloc -N1 -c4 | Allocate resources | Request an interactive resource allocation (1 node, 4 cores) without launching a task yet. |
| sbcast file /tmp/file | Broadcast file | Copy a file from local disk to local storage on every node allocated to a job. |
| Shortcut | Action | Description |
|---|---|---|
| squeue | View job queue | List queued and running jobs across the cluster with their state (R=running, PD=pending). |
| squeue -u $USER | View own jobs | Filter the queue to show only jobs submitted by the current user. |
| scancel jobid | Cancel job | Cancel a pending or running job by its job ID. |
| scancel -u $USER | Cancel all your jobs | Cancel every job currently submitted by the current user. |
| sattach jobid.stepid | Attach to job | Attach terminal input, output, and error streams to a currently running job step. |
| Shortcut | Action | Description |
|---|---|---|
| sinfo | Cluster status | Show the state of partitions and nodes managed by Slurm. |
| sinfo -N -l | Node detail | List every node individually with CPU count, memory, and state in long format. |
| scontrol show job jobid | Job details | Show comprehensive configuration and state details for a specific job. |
| scontrol show node name | Node details | Show hardware configuration and current state of a specific node. |
| sacct -j jobid | Job accounting | Report accounting information (CPU time, memory, exit code) for a completed or running job. |
| sacct -u $USER --starttime today | Today's jobs | List today's jobs for the current user along with resource usage. |
| sprio | Job priority | Show the factors contributing to a pending job's scheduling priority. |
| sshare | Fair-share usage | Show a user's or account's fair-share usage of the cluster over time. |
The most essential Slurm shortcuts are: sbatch script.sh (Submit batch job), srun --pty bash (Interactive session), salloc -N1 -c4 (Allocate resources). These cover the most frequent actions and can significantly speed up your workflow.
Slurm has 17 keyboard shortcuts across 3 categories on shortcut-tools.com.
These are command-line commands — type them in your terminal or console. Combine them with shell history search (Ctrl + R) and aliases to work even faster.
The Slurm shortcut for submit batch job is sbatch script.sh. Submit a job script for later execution. The script contains #SBATCH directives specifying resources like nodes, time, and memory.
Slurm includes 8 Cluster Info & Accounting shortcuts, including sinfo (Cluster status) and sinfo -N -l (Node detail). See the full list in the Cluster Info & Accounting section above.
Slurm includes 5 Job Monitoring shortcuts, including squeue (View job queue) and squeue -u $USER (View own jobs). See the full list in the Job Monitoring section above.
Yes — use My Stack to combine Slurm shortcuts with any other platform on this site into one printable reference, which is useful if your daily workflow spans several tools.
Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"