How to print ZPL file using terminal on linux To print a ZPL file on Linux using the terminal. First, the `lpstat -p -d` command lists available printers and identifies the system default, such as a Zebra label printer. Then, the `lpr` command with the `-o raw` option sends the ZPL file directly to the specified printer. lpstat -p -d Output: printer HP-LaserJet-1200 is idle. enabled since Thu 09 Aug 2018 01:29:05 PM +06 printer Zebra-Technologies-ZTC-GK420t is idle. enabled since Fri 24 Aug 2018 05:54:04 PM +06 printer ZTC-GK420t is idle. enabled since Fri 24 Aug 2018 05:54:04 PM +06 system default destination: Zebra-Technologies-ZTC-GK420t lpr -P PRINTER NAME FROM ABOVE OUTPUT -o raw FILE NAME .ZPL