← 返回命令列表

Linux command

sacct 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

sacct

Example

sacct -b

Example

sacct -j job_id -X

Example

sacct -j job_id -o Elapsed,JobName,ReqCPUS,ReqMem

Example

sacct -S $(date -d "1 week ago" +'%F')

Expand field width

sacct -o JobID,JobName%100

说明

sacct displays accounting data from the Slurm workload manager. It shows job history including resource usage, state, and exit codes for completed and running jobs. Output format is highly customizable with many available fields for detailed job analysis.

参数

-b, --brief
Display brief job information
-j, --jobs _id_
Show specific job
-X, --allocations
Show only allocations
-o, --format _fields_
Custom output format
-S, --starttime _date_
Filter by start time

FAQ

What is the sacct command used for?

sacct displays accounting data from the Slurm workload manager. It shows job history including resource usage, state, and exit codes for completed and running jobs. Output format is highly customizable with many available fields for detailed job analysis.

How do I run a basic sacct example?

Run `sacct` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -b, --brief do in sacct?

Display brief job information