On the System V operating system, the cancel command cancels print jobs.

Description

cancel cancels existing print jobs. The -a option removes all jobs from the specified destination.

  • Description
  • Syntax
  • Options
  • Examples
  • Related commands
  • Linux commands help

When specifying printers, printer names are not case-sensitive.

Syntax

cancel [ -E ] [ -U username ] [ -a ] [ -h hostname[:port] ] [ -u username ] [ id ] [ destination ] [ destination-id ]

Options

Examples

cancel

Cancels all pending print jobs.

lp — Print a file on the System V operating system.lpq — List the status of available printers.lpr — Submit print requests.lprm — Remove requests from the print queue.lpstat — List the status of the LP print services.