I know I can change the characters per inch used by lp with lp -o cpi=12 (or any number you like). But is it possible to change the default value of this option globally? The default, when -o cpi=<N> is not passed, is 10. But I'd like to change this default number to something else so that I do not have to type -o cpi=<mynumber> always and in all scripts I wrote in the past. How can I do this?
How to change default cpi for `lp`?
printing;cups;lp
Use the lpoptions command.That writes settings to ~/.cups/lpoptions or, if run as root, in the system-wide /etc/cups/lpoptions file.These settings are used when submitting jobs via lp or lpr, hence changes take effect immediately without the need to restart services.