mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-13 23:55:27 +02:00

* batch1 * batch2 * batch3 * batch4 * Update matchpathcon.md * Update pages/linux/arecord.md Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> * Update pages/linux/arecord.md Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> * Update pages/linux/arecord.md Co-authored-by: Wiktor Perskawiec <git@spageektti.cc> --------- Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
28 lines
864 B
Markdown
28 lines
864 B
Markdown
# 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 {{[-b|--brief]}}`
|
|
|
|
- Display the allocations of a job:
|
|
|
|
`sacct {{[-j|--jobs]}} {{job_id}} {{[-X|--allocations]}}`
|
|
|
|
- Display elapsed time, job name, number of requested CPUs, and memory requested of a job:
|
|
|
|
`sacct {{[-j|--jobs]}} {{job_id}} {{[-o|--format]}} Elapsed,JobName,ReqCPUS,ReqMem`
|
|
|
|
- Display recent jobs that occurred from one week ago up to the present day:
|
|
|
|
`sacct {{[-S|--starttime]}} $(date {{[-d|--date]}} "1 week ago" +'%F')`
|
|
|
|
- Output a larger number of characters for an attribute:
|
|
|
|
`sacct {{[-o|--format]}} JobID,JobName%100`
|