{"slug": "how-to-print-zpl-file-using-terminal-on-linux", "title": "How to print ZPL file using terminal on linux", "summary": "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.", "body_md": "lpstat -p -d\nOutput: 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\nlpr -P [PRINTER NAME FROM ABOVE OUTPUT] -o raw [FILE NAME *.ZPL]", "url": "https://wpnews.pro/news/how-to-print-zpl-file-using-terminal-on-linux", "canonical_source": "https://gist.github.com/zubayerahamed/fa07d1def0b2f1dc5f67052ebf54861d", "published_at": "2018-08-24 13:11:03+00:00", "updated_at": "2026-05-22 10:44:51.071299+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["HP", "Zebra Technologies"], "alternates": {"html": "https://wpnews.pro/news/how-to-print-zpl-file-using-terminal-on-linux", "markdown": "https://wpnews.pro/news/how-to-print-zpl-file-using-terminal-on-linux.md", "text": "https://wpnews.pro/news/how-to-print-zpl-file-using-terminal-on-linux.txt", "jsonld": "https://wpnews.pro/news/how-to-print-zpl-file-using-terminal-on-linux.jsonld"}}