Linux Commands Examples

A great documentation place for Linux commands


Model Query Utility


hp-query [MODE] [OPTIONS]

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 !


Query a printer model for static model information. Designed to be called from other processes.


Set the logging level:

-l<level> or --logging=<level> <level>: none, info*, error, warn, debug (*default)

Run in debug mode:

-g (same as option: -ldebug)

This help information:

-h or --help

Specify model by device URI:

-d<device_uri> or --device=<device_uri>

Specify normalized model name:

-m<model_name> or --model=<model_name> (normalized models.dat format)

Specify raw model name:

-r<model_name> or --raw=<model_name> (raw model name from MDL: field of device ID)

Specify key to query:

-k<key> or --key=<key> (or, use -a/--all to return all keys)

Query all keys:

-a or --all (default separator is a LF)

Specify the separator when multiple keys are queried:

-s<sep> --sep=<sep> (character or ’tab’, ’newline’, ’cr’, ’lf’, ’crlf’)(only valid when used with -a/--all)

Suppress trailing linefeed:



Copyright (c) 2001-13 Hewlett-Packard Development Company, L.P.

This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to distribute it under certain conditions. See COPYING file for more details.


Run in non-interactive mode:

-n or --non-interactive

reporting bugs

The HPLIP site is available to get help, report bugs, make suggestions, discuss the HPLIP project or otherwise contact the HPLIP Team.

see also



HPLIP (Hewlett-Packard Linux Imaging and Printing) is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux.

How can this site be more helpful to YOU ?

give  feedback