create account

#Linux Kill printer jobs. by oneshot

View this thread on: hive.blogpeakd.comecency.com
· @oneshot · (edited)
#Linux Kill printer jobs.
- Find jobs and the targeted device: `lpstat -o`
- Kill all jobs: `cancel -a {printer}`
- Kill 1 job: `cancel {printerjobid}`
<br /><br />

[ALTERNATIVE]
First obtain the pending job number with the `lpq -a` command:

Rank | Owner | Job | File(s)
------------ | -------------| -------------| -------------
active | user | 137 | Untitled1

Now you are ready to kill the process by simply giving the `$ lprm 137` command.
<br /><br /><br /><br /><br />
<center><h5>please feel free to write comments suggestions and alternatives</h5>
![untitled.gif](https://media.tenor.com/images/51356c29049d292651cb558c6f176430/tenor.gif)</center>
👍  
properties (23)
authoroneshot
permlinklinux-kill-printer-jobs
categorylinux
json_metadata{"app":"peakd/2021.03.8","format":"markdown","tags":["linux","terminal","commandline","cli","hardware"],"users":["oneshot"],"links":["https://steemit.com/linux/@oneshot/delete-a-pending-printing-job-in-linux"],"image":["https://media.tenor.com/images/51356c29049d292651cb558c6f176430/tenor.gif"]}
created2021-03-28 06:56:06
last_update2021-03-28 09:35:42
depth0
children0
last_payout2021-04-04 06:56:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length631
author_reputation2,618,161,935,301
root_title"#Linux Kill printer jobs."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id102,652,524
net_rshares12,940,762,223
author_curate_reward""
vote details (1)