# lpoptions

## NAME



           lpoptions - display or set per-user printer options and defaults
    


## SYNOPSIS



           **lpoptions**[ **-h** _server_[**:**_port_] ] [ **-E**] **-d** _destination_[**/**_instance_] [
           **-l**]
           **lpoptions**[ **-h** _server_[**:**_port_] ] [ **-E**] [ **-p** _destination_[**/**_instance_]
           ] **-o** _option_[**=**_value_] ...
           **lpoptions**[ **-h** _server_[**:**_port_] ] [ **-E**] [ **-p** _destination_[**/**_instance_]
           ] **-r** _option_
           **lpoptions**[ **-h** _server_[**:**_port_] ] [ **-E**] **-x** _destination_[**/**_instance_]
    


## DESCRIPTION



           **lpoptions** displays or sets printer options and defaults.  If no
           printer is specified using the _-p_ option, the default printer is
           used as described in lp(1).
    
           If no _-l_ , _-o_ , or _-r_ options are specified, the current options are
           reported on the standard output.
    
           Options set with the **lpoptions** command are used by the lp(1) and
           lpr(1) commands when submitting jobs.
    
           When run by the root user, **lpoptions** gets and sets default options
           and instances for all users in the _/etc/cups/lpoptions_ file.
           Otherwise, the per-user defaults are managed in the
           _~/.cups/lpoptions_ file.
    


## OPTIONS



           **lpoptions** supports the following options:
    
           **-E** Enables encryption when communicating with the CUPS server.
    
           **-d** _destination_[**/**_instance_]
                Sets the user default printer to _destination_.  If _instance_ is
                supplied then that particular instance is used.  This option
                overrides the system default printer for the current user.
    
           **-h** _server_[**:**_port_]
                Uses an alternate server.  Note: This option must occur
                before all others.
    
           **-l** Lists the printer specific options and their current
                settings.
    
           **-o** _option_[**=**_value_]
                Specifies a new option for the named destination.
    
           **-p** _destination_[**/**_instance_]
                Sets the destination and instance, if specified, for any
                options that follow.  If the named instance does not exist
                then it is created.  Destinations can only be created using
                the lpadmin(8) program.
    
           **-r** _option_
                Removes the specified option from the named destination.
    
           **-x** _destination_[**/**_instance_]
                Removes the options for the named destination and instance,
                if specified.  If the named instance does not exist then this
                does nothing.  Destinations can only be removed using the
                lpadmin(8) command.
    


## ENVIRONMENT



           The following environment variables override the default
           destination:
    
           **LPDEST**
                Specifies the default print queue (System V standard).
    
           **PRINTER**
                Specifies the default print queue (Berkeley standard).
    


## FILES



           _~/.cups/lpoptions_ - user defaults and instances created by non-
           root users.
           _/etc/cups/lpoptions_ - system-wide defaults and instances created
           by the root user.
    


## CONFORMING TO



           The **lpoptions** command is unique to CUPS.
    


* * *