Forrest logo
back to the lpr tool

lpr:tldr:58292

lpr: Print a file to the default printer.
$ lpr ${filename}
try on your machine

The command "lpr ${filename}" is used to print a file named "filename" on a Linux or Unix system.

Here's how the different parts of the command work:

  1. "lpr" stands for "line printer" and is a command-line utility used to send files for printing.
  2. "${filename}" is a variable placeholder that represents the name of the file you want to print. You need to replace "${filename}" with the actual name of the file you want to print.

In summary, when you run this command with the appropriate file name, it will send the specified file to the default printer on your system for printing.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the lpr tool