We just updated our server from CentOS 6 to RHEL 7 and after setting up our HP LaserJet 600 from ppd, I'm noticing that all print jobs now have about a 2" margin at the top of the page.

Is it possible to define margins in a configuration file? This reply suggests that margins can be set with some arguments to lpr, but I'd rather store them in a conf file.

using lp: 

-o page-bottom=N

-o page-left=N

-o page-right=N

-o page-top=N

Sets the page margins when printing text files. 
The values are in points - there are 72 points to the inch.
  • Have you looked at the loptions command? Jul 28, 2016 at 17:00
  • I haven't, though I see it is spelled lpoptions
    – a coder
    Jul 28, 2016 at 17:10
  • Oop, sorry, yeah, typo. lpoptions allows you to set per-user or global defaults for each printer. Jul 28, 2016 at 17:27
  • Are the changes persistent?
    – a coder
    Jul 28, 2016 at 17:28
  • 2
    Yup! They update config files /etc/cups/lpoptions or ~/.cups/lpoptions Jul 28, 2016 at 17:29

1 Answer 1


Standard options can be set with the lpoptions command.

If run as a normal user the file $HOME/.cups/lpoptions is set.

If run as the root user then the system defaults /etc/cups/lpoptions is set.

This can be used to change various settings (eg double sided printing) and page-top.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .