# phpman > man > pamfile(1)

> **TLDR:** Describe Netpbm (PAM or PNM) files.
>
- Describe the specified Netpbm files:
  `pamfile {{path/to/file1 path/to/file2 ...}}`
- Describe every image in each input file (as opposed to only the first image in each file) in a machine-readable format:
  `pamfile {{-a|-allimages}} -machine {{path/to/file}}`
- Display a count on how many images the input files contain:
  `pamfile {{-cou|-count}} {{path/to/file}}`

*Source: tldr-pages*

---

[pamfile(1)](https://www.chedong.com/phpMan.php/man/pamfile/1/markdown)                             General Commands Manual                            [pamfile(1)](https://www.chedong.com/phpMan.php/man/pamfile/1/markdown)



## NAME
       pamfile - describe a Netpbm (PAM or PNM) file

## SYNOPSIS
       **pamfile** [**-allimages**] [_file_ _..._]


## DESCRIPTION
       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.


## OPTIONS
### -allimages
              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 con‐
              tain more than one image and many programs ignore all but the first.


## SEE ALSO
       [**pam**(5)](https://www.chedong.com/phpMan.php/man/pam/5/markdown), [**file**(1)](https://www.chedong.com/phpMan.php/man/file/1/markdown)


## AUTHOR
       Copyright (C) 1991 by Jef Poskanzer.



                                           06 August 2000                                 [pamfile(1)](https://www.chedong.com/phpMan.php/man/pamfile/1/markdown)
