Display elapsed time, job name, number of requested CPUs, and memory requested of a job

sacct

sacct --jobs {{job_id}} --format={{elapsed}},{{jobname}},{{reqcpus}},{{reqmem}}

click the source code to copy install sacct on any operating system with command-not-found.com