Linux Commands Examples

A great documentation place for Linux commands


create a Universal Product Code bitmap


pbmupc [-s1|-s2] type manufac product

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


Generates a Universal Product Code symbol. The three arguments are: a one digit product type, a five digit manufacturer code, and a five digit product code. For example, "0 72890 00011" is the code for Heineken.

As presently configured, pbmupc produces a bitmap 230 bits wide and 175 bits high. The size can be altered by changing the defines at the beginning of the program, or by running the output through pnmenlarge or pnmscale.


The -s1 and -s2 flags select the style of UPC to generate. The default, -s1, looks more or less like this:
The other style, -s2, puts the product type digit higher up, and doesn’t display the checksum digit:

see also



Copyright (C) 1989 by Jef Poskanzer.

How can this site be more helpful to YOU ?

give  feedback