Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

batch command in Linux with Examples

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

batch command is used to read commands from standard input or a specified file and execute them when system load levels permit i.e. when the load average drops below 1.5.

Syntax:

batch

It is important to note that batch does not accepts any parameters.

Other Similar Commands:

  • atq: Used to display the queue of pending jobs(this is because at and batch both uses the same job queue).
  • atrm: Used to remove the specified job from job queue.

Example:

  • Working with the batch command.
    top

  • Executing some commands using batch.

    • See the average load is lower than 1.5 that’s why the job queue is empty and command executed instantly.
    • Use ctrl +d when done giving commands to batch.
My Personal Notes arrow_drop_up
Last Updated : 15 May, 2019
Like Article
Save Article
Similar Reads
Related Tutorials