cd /news/developer-tools/how-to-print-zpl-file-using-terminal… · home topics developer-tools article
[ARTICLE · art-8438] src=gist.github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

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.

read1 min views22 publishedAug 24, 2018

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]

── more in #developer-tools 4 stories · sorted by recency
── more on @hp 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-to-print-zpl-fil…] indexed:0 read:1min 2018-08-24 ·