Linux + Slurm Commands Reference Sheet¶
Help + Manual¶
Nearly every command accepts command --help as a flag. This gives a quick summary of options and usage. Likewise, man command opens the full manual entry for a command.
Basic Linux Commands¶
Command |
Purpose |
Example Usage |
Explanation |
|---|---|---|---|
|
Change directory |
|
Moves you into another folder. |
|
Print working directory |
|
Shows the full path of your current location. |
|
List directory contents |
|
Lists all files/folders ( |
|
Move or rename files |
|
Moves or renames a file. |
|
Copy files |
|
Makes a duplicate of a file. |
|
Make directory |
|
Creates a new folder. |
|
View file contents |
|
Displays the contents of a file. |
|
Create/update file |
|
Creates a blank file or updates an existing one’s timestamp. |
|
Remove files/folders |
|
Deletes a file or folder (cannot be undone). |
Common Slurm Commands¶
Command |
Purpose |
Example Usage |
Explanation |
|---|---|---|---|
|
Submit a job script |
|
Sends a job script to the queue for execution. |
|
View the job queue |
|
Shows jobs running or waiting (for your user). |
|
Cancel a job |
|
Stops a specific job. |
|
View cluster status |
|
Displays node/partition availability. |
|
Run interactively or in parallel |
|
Runs a command directly through Slurm. |
|
View job history |
|
Shows usage and stats for completed jobs. |
|
Inspect/modify job info |
|
Displays detailed job information. |
|
Start an interactive session |
|
Reserves resources for live testing. |
|
Load software environments |
|
Loads pre-installed software on the cluster. |
|
Connect to remote system |
|
Securely logs in to the cluster’s login node. |