mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-26 23:53:07 +00:00
Update cheatsheets
This commit is contained in:
33
linux/sacct
Normal file
33
linux/sacct
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sacct
|
||||
|
||||
> Display accounting data from the Slurm service.
|
||||
> More information: <https://slurm.schedmd.com/sacct.html>.
|
||||
|
||||
- Display job id, job name, partition, account, number of allocated cpus, job state, and job exit codes for recent jobs:
|
||||
|
||||
`sacct`
|
||||
|
||||
- Display job id, job state, job exit code for recent jobs:
|
||||
|
||||
`sacct --brief`
|
||||
|
||||
- Display the allocations of a job:
|
||||
|
||||
`sacct --jobs {{job_id}} --allocations`
|
||||
|
||||
- Display elapsed time, job name, number of requested CPUs, and memory requested of a job:
|
||||
|
||||
`sacct --jobs {{job_id}} --format=Elapsed,JobName,ReqCPUS,ReqMem`
|
||||
|
||||
- Display recent jobs that occurred from one week ago up to the present day:
|
||||
|
||||
`sacct --starttime=$(date -d "1 week ago" +'%F')`
|
||||
|
||||
- Output a larger number of characters for an attribute:
|
||||
|
||||
`sacct --format=JobID,JobName%100`
|
||||
Reference in New Issue
Block a user