Forrest logo
back to the lpr tool

lpr:tldr:60c10

lpr: Print 2 copies.
$ lpr -# ${2} ${filename}
try on your machine

This command is used to print a file using the lpr command-line utility. Here is the breakdown of each component:

  • lpr: It is the command used to print files in Unix/Linux systems.
  • -#: It is an option used to specify the number of copies of the file to be printed. ${2} is a placeholder for the number of copies. For example, if you want to print 5 copies of the file, the command would be lpr -# 5 ${filename}.
  • ${filename}: It is another placeholder for the name of the file that you want to print. You need to replace it with the actual filename, including the path if necessary.
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