Skip to content

Instantly share code, notes, and snippets.

@zubayerahamed
Created August 24, 2018 13:11
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zubayerahamed/fa07d1def0b2f1dc5f67052ebf54861d to your computer and use it in GitHub Desktop.
Save zubayerahamed/fa07d1def0b2f1dc5f67052ebf54861d to your computer and use it in GitHub Desktop.
How to print ZPL file using terminal on linux

to see which printer is availabe in this system , simply type

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

to print zpl file, go to file directory and open terminal and type the below command

lpr -P [PRINTER NAME FROM ABOVE OUTPUT] -o raw [FILE NAME *.ZPL]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment