The .printers file is located in a user's home directory. This file includes information about a user's default printer and other frequently used printers. Having a .printers file enables users to establish their own printer aliases. For example, a _default alias can be used to specify a user's default printer. Also, a special _all alias can be used to define a list of printers that are affected when a print job is canceled or to check the status of printers.
The use of the .printers file by the LP print service is controlled by the naming service switch (/etc/nsswitch.conf). The default configuration specifies that the print service checks a user's home directory to locate printer configuration information before it checks the other naming services. So, you can tailor a user's printer configuration file to use custom printer information rather than the shared information in the naming service.
This procedure shows users how to set up .printers file in their own home directories.
Log in to the system with your user name and password.
If necessary, change directories to $HOME.
$ cd $HOME
Start the text editor that you want to use to create a .printers file.
(Optional) Set up the _all alias to define the printers affected when you cancel a print request or check the status of printers. Use an entry similar to this entry.
Save the file as .printers.