Forrest logo
back to the libreoffice tool

libreoffice:tldr:8b93d

libreoffice: Print files to a specific printer.
$ libreoffice --pt ${printer_name} ${filename1} ${filename2}
try on your machine

The command "libreoffice --pt ${printer_name} ${filename1} ${filename2}" is used to print specific files using the LibreOffice software.

Here is a breakdown of the command:

  • "libreoffice": This is the command to invoke the LibreOffice software from the command line.

  • "--pt": This is an option flag that specifies the printer to use for printing. It is followed by the name of the desired printer specified by ${printer_name}. The ${printer_name} is a placeholder that should be replaced with the actual name of the printer you want to use.

  • ${filename1} and ${filename2}: These are placeholders for the names or paths of the files that you want to print. You can replace them with the actual names or paths of the files you want to print. Multiple filenames can be specified, separating them with spaces.

Once you execute this command, LibreOffice will use the specified printer to print the files named ${filename1} and ${filename2}.

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 libreoffice tool