atrm command in Linux with examples

atrm command is used to remove the specified jobs. To remove a job, its job number is passed in the command. A user can only delete jobs that belong to him. Only superuser can delete any job even if that belongs to another user.

Syntax:

atrm [-V] job [job...]

Options:



  • -V : Used to print the version number
    atrm -V 

  • job : Job number of the job which is to be deleted. To see the list of the pending jobs use following:

    Example 1: Deleting job number 22.

    atrm 22

    Example 2: Deleting multiple jobs in single atrm command:

    atrm 21 26

Alternative command for atrm:

Syntax:

 at -r Job 

Example 1: Deleting single job:

 at -r 24

Example 2: Deleting multiple jobs:

at -r 25 27



My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.