lp vs lpr. What to use in case of CUPS and what historical difference?












24















My Debian distro provide the lp and lpr commands for printing from CUPS.



I am a noob to printing in UNIX but have other tech skills.



I tried to find a difference in man lp and man lpr. It seems that lp only have more options...



The gv utility uses lp. I found older threads that explain that lpr is for network printing, while lp is a wrapper around lpr...



I just enjoyed reading:




  • http://www.tldp.org/HOWTO/Printing-HOWTO/index.html










share|improve this question





























    24















    My Debian distro provide the lp and lpr commands for printing from CUPS.



    I am a noob to printing in UNIX but have other tech skills.



    I tried to find a difference in man lp and man lpr. It seems that lp only have more options...



    The gv utility uses lp. I found older threads that explain that lpr is for network printing, while lp is a wrapper around lpr...



    I just enjoyed reading:




    • http://www.tldp.org/HOWTO/Printing-HOWTO/index.html










    share|improve this question



























      24












      24








      24


      1






      My Debian distro provide the lp and lpr commands for printing from CUPS.



      I am a noob to printing in UNIX but have other tech skills.



      I tried to find a difference in man lp and man lpr. It seems that lp only have more options...



      The gv utility uses lp. I found older threads that explain that lpr is for network printing, while lp is a wrapper around lpr...



      I just enjoyed reading:




      • http://www.tldp.org/HOWTO/Printing-HOWTO/index.html










      share|improve this question
















      My Debian distro provide the lp and lpr commands for printing from CUPS.



      I am a noob to printing in UNIX but have other tech skills.



      I tried to find a difference in man lp and man lpr. It seems that lp only have more options...



      The gv utility uses lp. I found older threads that explain that lpr is for network printing, while lp is a wrapper around lpr...



      I just enjoyed reading:




      • http://www.tldp.org/HOWTO/Printing-HOWTO/index.html







      linux printing cups lpr






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 20 at 18:44









      Superdooperhero

      1035




      1035










      asked Feb 4 '13 at 17:01









      gavenkoagavenkoa

      92241831




      92241831






















          1 Answer
          1






          active

          oldest

          votes


















          29














          LPR is part of the original BSD printing system. It was fairly simple and straightforward, but it didn't have all the management capabilities that large print environments wanted. You could hack it to do all sorts of things by shoving filters in the right place, but it was pretty kludgy. It also included a very limited network functionality allowing you to send jobs to a remote printer, but since the protocol was only designed with plain text in mind, it never really had provisions for determining types of documents and translating them to what the printer could understand. Ad-hoc workarounds helped. Since the network protocol was so simple, lots and lots of network printers support it.



          System V designed a bigger system which allowed you to have things like printer classes, and a print job would go to the first free printer in the class. (For example, if you had a machine room with three printers.) It also tried to build in more formalized support for filters and things like that, but alas, it's also really, really old and not really designed for networked environments.



          Nowadays, nobody really uses either system. CUPS has taken over the print systems, but it offers the command line tools for both lpr and SYSV printing (lp). That's just for compatibility. You can use either command you find easiest.






          share|improve this answer



















          • 2





            If CUPS have taken over then what is the CUPS command used instead of lp and lpr?

            – Superdooperhero
            Jan 20 at 18:43











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f546472%2flp-vs-lpr-what-to-use-in-case-of-cups-and-what-historical-difference%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          29














          LPR is part of the original BSD printing system. It was fairly simple and straightforward, but it didn't have all the management capabilities that large print environments wanted. You could hack it to do all sorts of things by shoving filters in the right place, but it was pretty kludgy. It also included a very limited network functionality allowing you to send jobs to a remote printer, but since the protocol was only designed with plain text in mind, it never really had provisions for determining types of documents and translating them to what the printer could understand. Ad-hoc workarounds helped. Since the network protocol was so simple, lots and lots of network printers support it.



          System V designed a bigger system which allowed you to have things like printer classes, and a print job would go to the first free printer in the class. (For example, if you had a machine room with three printers.) It also tried to build in more formalized support for filters and things like that, but alas, it's also really, really old and not really designed for networked environments.



          Nowadays, nobody really uses either system. CUPS has taken over the print systems, but it offers the command line tools for both lpr and SYSV printing (lp). That's just for compatibility. You can use either command you find easiest.






          share|improve this answer



















          • 2





            If CUPS have taken over then what is the CUPS command used instead of lp and lpr?

            – Superdooperhero
            Jan 20 at 18:43
















          29














          LPR is part of the original BSD printing system. It was fairly simple and straightforward, but it didn't have all the management capabilities that large print environments wanted. You could hack it to do all sorts of things by shoving filters in the right place, but it was pretty kludgy. It also included a very limited network functionality allowing you to send jobs to a remote printer, but since the protocol was only designed with plain text in mind, it never really had provisions for determining types of documents and translating them to what the printer could understand. Ad-hoc workarounds helped. Since the network protocol was so simple, lots and lots of network printers support it.



          System V designed a bigger system which allowed you to have things like printer classes, and a print job would go to the first free printer in the class. (For example, if you had a machine room with three printers.) It also tried to build in more formalized support for filters and things like that, but alas, it's also really, really old and not really designed for networked environments.



          Nowadays, nobody really uses either system. CUPS has taken over the print systems, but it offers the command line tools for both lpr and SYSV printing (lp). That's just for compatibility. You can use either command you find easiest.






          share|improve this answer



















          • 2





            If CUPS have taken over then what is the CUPS command used instead of lp and lpr?

            – Superdooperhero
            Jan 20 at 18:43














          29












          29








          29







          LPR is part of the original BSD printing system. It was fairly simple and straightforward, but it didn't have all the management capabilities that large print environments wanted. You could hack it to do all sorts of things by shoving filters in the right place, but it was pretty kludgy. It also included a very limited network functionality allowing you to send jobs to a remote printer, but since the protocol was only designed with plain text in mind, it never really had provisions for determining types of documents and translating them to what the printer could understand. Ad-hoc workarounds helped. Since the network protocol was so simple, lots and lots of network printers support it.



          System V designed a bigger system which allowed you to have things like printer classes, and a print job would go to the first free printer in the class. (For example, if you had a machine room with three printers.) It also tried to build in more formalized support for filters and things like that, but alas, it's also really, really old and not really designed for networked environments.



          Nowadays, nobody really uses either system. CUPS has taken over the print systems, but it offers the command line tools for both lpr and SYSV printing (lp). That's just for compatibility. You can use either command you find easiest.






          share|improve this answer













          LPR is part of the original BSD printing system. It was fairly simple and straightforward, but it didn't have all the management capabilities that large print environments wanted. You could hack it to do all sorts of things by shoving filters in the right place, but it was pretty kludgy. It also included a very limited network functionality allowing you to send jobs to a remote printer, but since the protocol was only designed with plain text in mind, it never really had provisions for determining types of documents and translating them to what the printer could understand. Ad-hoc workarounds helped. Since the network protocol was so simple, lots and lots of network printers support it.



          System V designed a bigger system which allowed you to have things like printer classes, and a print job would go to the first free printer in the class. (For example, if you had a machine room with three printers.) It also tried to build in more formalized support for filters and things like that, but alas, it's also really, really old and not really designed for networked environments.



          Nowadays, nobody really uses either system. CUPS has taken over the print systems, but it offers the command line tools for both lpr and SYSV printing (lp). That's just for compatibility. You can use either command you find easiest.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 4 '13 at 17:30









          Alan ShutkoAlan Shutko

          3,56811422




          3,56811422








          • 2





            If CUPS have taken over then what is the CUPS command used instead of lp and lpr?

            – Superdooperhero
            Jan 20 at 18:43














          • 2





            If CUPS have taken over then what is the CUPS command used instead of lp and lpr?

            – Superdooperhero
            Jan 20 at 18:43








          2




          2





          If CUPS have taken over then what is the CUPS command used instead of lp and lpr?

          – Superdooperhero
          Jan 20 at 18:43





          If CUPS have taken over then what is the CUPS command used instead of lp and lpr?

          – Superdooperhero
          Jan 20 at 18:43


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f546472%2flp-vs-lpr-what-to-use-in-case-of-cups-and-what-historical-difference%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

          Alcedinidae

          Origin of the phrase “under your belt”?