Linux Commands Examples

A great documentation place for Linux commands


describe a Netpbm (PAM or PNM) file

see also : file


pamfile [-allimages] [file ...]

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!


for pamfile in imap/*.pam; do
sed -i "s|/lib/security/||;s|pam_pwdb|pam_unix|" ${pamfile}
install -Dm 644 ${pamfile} \
install -Dm 644 ${pamfile} \
${pkgdir}/etc/pam.d/$(basename ${pamfile} .pam | sed "s/d$//")
# install thingies


Reads one or more Netpbm files as input. Writes out short descriptions of the image type, size, etc. This is mostly for use in shell scripts, so the format is not particularly pretty.



Describe every image in each input file. Without this option, pamfile describes only the first image in each input file. Note that before July 2000, a file could not contain more than one image and many programs ignore all but the first.

see also

pam, file


Copyright (C) 1991 by Jef Poskanzer.

How can this site be more helpful to YOU ?

give  feedback