Slurm Keyboard Shortcuts

Complete Slurm keyboard shortcuts and commands reference — 17 shortcuts across 3 categories. Quick reference cheat sheet for Windows & Mac.

About Slurm

Slurm is a popular job scheduler used by professionals worldwide. Learning keyboard shortcuts can dramatically speed up your workflow — studies show shortcut users save an average of 8 days per year compared to mouse-only users.

This page covers all 17 Slurm shortcuts across 3 categories: Job Submission, Job Monitoring, Cluster Info & Accounting. Each shortcut includes a description to help you understand when and how to use it effectively.

Job Submission (4)

ShortcutActionDescription
sbatch script.shSubmit batch jobSubmit a job script for later execution. The script contains #SBATCH directives specifying resources like nodes, time, and memory.
srun --pty bashInteractive sessionStart an interactive allocation and open a shell directly on a compute node.
salloc -N1 -c4Allocate resourcesRequest an interactive resource allocation (1 node, 4 cores) without launching a task yet.
sbcast file /tmp/fileBroadcast fileCopy a file from local disk to local storage on every node allocated to a job.

Job Monitoring (5)

ShortcutActionDescription
squeueView job queueList queued and running jobs across the cluster with their state (R=running, PD=pending).
squeue -u $USERView own jobsFilter the queue to show only jobs submitted by the current user.
scancel jobidCancel jobCancel a pending or running job by its job ID.
scancel -u $USERCancel all your jobsCancel every job currently submitted by the current user.
sattach jobid.stepidAttach to jobAttach terminal input, output, and error streams to a currently running job step.

Cluster Info & Accounting (8)

ShortcutActionDescription
sinfoCluster statusShow the state of partitions and nodes managed by Slurm.
sinfo -N -lNode detailList every node individually with CPU count, memory, and state in long format.
scontrol show job jobidJob detailsShow comprehensive configuration and state details for a specific job.
scontrol show node nameNode detailsShow hardware configuration and current state of a specific node.
sacct -j jobidJob accountingReport accounting information (CPU time, memory, exit code) for a completed or running job.
sacct -u $USER --starttime todayToday's jobsList today's jobs for the current user along with resource usage.
sprioJob priorityShow the factors contributing to a pending job's scheduling priority.
sshareFair-share usageShow a user's or account's fair-share usage of the cluster over time.
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

Frequently Asked Questions

What are the most useful Slurm keyboard shortcuts?

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.

How many keyboard shortcuts does Slurm have?

Slurm has 17 keyboard shortcuts across 3 categories on shortcut-tools.com.

How do I use Slurm commands?

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.

What is the Slurm shortcut for submit batch job?

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.

💡 Pro Tips for Slurm Users

Start with the essentials: Learn sbatch script.sh (Submit batch job) and srun --pty bash (Interactive session) first — these are the most commonly used.

Practice daily: Pick 2–3 new shortcuts each day and consciously use them instead of the mouse. Within a week, they become muscle memory.

Print this cheat sheet: Keep a reference nearby until shortcuts become automatic. Focus on the Job Submission category first.

CLI tip: Create shell aliases for the commands you use most. Combine them with these shortcuts for maximum efficiency.

Related Shortcut Pages

NCCL Tests HPL (Linpack) nvidia-smi (GPU) NVIDIA DGX NVIDIA DCGM torchrun OpenMPI (mpirun) Kubernetes (kubectl)

Search 4,100+ shortcuts across 260 platforms

Explore All Platforms Practice Shortcuts