mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-13 00:59:11 +00:00
Update cheatsheets
This commit is contained in:
@@ -14,20 +14,20 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display job ID, job state, job exit code for recent jobs:
|
||||
|
||||
`sacct --brief`
|
||||
`sacct {{[-b|--brief]}}`
|
||||
|
||||
- Display the allocations of a job:
|
||||
|
||||
`sacct --jobs {{job_id}} --allocations`
|
||||
`sacct {{[-j|--jobs]}} {{job_id}} {{[-X|--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`
|
||||
`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 --starttime=$(date -d "1 week ago" +'%F')`
|
||||
`sacct {{[-S|--starttime]}} $(date {{[-d|--date]}} "1 week ago" +'%F')`
|
||||
|
||||
- Output a larger number of characters for an attribute:
|
||||
|
||||
`sacct --format=JobID,JobName%100`
|
||||
`sacct {{[-o|--format]}} JobID,JobName%100`
|
||||
|
||||
Reference in New Issue
Block a user