Results 1 to 4 of 4

Thread: CLI print file

  1. #1
    Join Date
    Dec 2008
    Location
    USA
    Beans
    528
    Distro
    Ubuntu 18.10 Cosmic Cuttlefish

    CLI print file

    I have a file that I want to print from the command line.
    There is already a CUPS printer setup.

    Can I do that?
    I don' really like coffee. I guess I'll give my Ubuntu beans to my wife.

    Luke

  2. #2
    Join Date
    Aug 2006
    Location
    The Netherlands
    Beans
    175
    Distro
    Ubuntu

    Re: CLI print file

    Have a look at the lp command. This allows you to print to the printer. Ex. lp filename.

  3. #3
    Join Date
    Dec 2008
    Location
    USA
    Beans
    528
    Distro
    Ubuntu 18.10 Cosmic Cuttlefish

    Re: CLI print file

    server@hyrule:~/Documents$ lp printme
    lp: Error - no default destination available.


    does that refer to a printer?



    this is the site I found helpful
    http://www.computerhope.com/unix/ulp.htm#03
    Last edited by wlraider70; April 27th, 2012 at 01:03 AM.
    I don' really like coffee. I guess I'll give my Ubuntu beans to my wife.

    Luke

  4. #4
    Join Date
    Aug 2006
    Location
    The Netherlands
    Beans
    175
    Distro
    Ubuntu

    Re: CLI print file

    Yes. You can also do lp -d printername filename For more info on this command look at the man page: man lp or the site you mentioned whcih is basically the man page of lp.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •