Which Command Is Used to Print in Linux?
Contents

The lp command is used to print files on Unix and Linux systems.

Which command is used to print a file in Linux?

To print a file with a specific printer, execute the lp command with the ‘-d’ option or lpr command with the ‘-P’ option.

How do I print on Linux?

How to Print from a Linux

  1. Open the page you want to print within your html interpreter program.
  2. Select Print from the File dropdown menu. A dialogue box will open.
  3. Click OK if you wish to print to the default printer.
  4. Enter the lpr command as above if you wish to select a different printer.
Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest