HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

systemctl cancel — Cancel one or more pending jobs in the system manager or user manager. More information: <https://ww

Submitted by: @import:tldr-pages··
0
Viewed 0 times
systemctl cancelcommandpendingclimorejobscancelone
linux

Problem

How to use the systemctl cancel command: Cancel one or more pending jobs in the system manager or user manager. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#cancel%20JOB%E2%80%A6>.

Solution

systemctl cancel — Cancel one or more pending jobs in the system manager or user manager. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#cancel%20JOB%E2%80%A6>.

Cancel a job by its numeric ID:
systemctl cancel {{job_id}}


Cancel multiple jobs:
systemctl cancel {{job_id1 job_id2 ...}}


Cancel all pending jobs:
systemctl cancel


Cancel a job in the user service manager:
systemctl cancel {{job_id}} --user

Code Snippets

Cancel a job by its numeric ID

systemctl cancel {{job_id}}

Cancel multiple jobs

systemctl cancel {{job_id1 job_id2 ...}}

Cancel all pending jobs

systemctl cancel

Cancel a job in the user service manager

systemctl cancel {{job_id}} --user

Context

tldr-pages: linux/systemctl cancel

Revisions (0)

No revisions yet.