Print files.


All systems
curl cmd.cat/lp.sh
Debian Debian
apt-get install lprng
apt-get install lprng
Arch Arch Linux
pacman -S lprng
image/svg+xml Kali Linux
apt-get install lprng
yum install lprng
apt-get install lprng

Print files.

  • Print the output of a command to the default printer (see `lpstat` command):
    echo "test" | lp
  • Print a file to the default printer:
    lp path/to/filename
  • Print a file to a named printer (see `lpstat` command):
    lp -d printer_name path/to/filename
  • Print N copies of file to default printer (replace N with desired number of copies):
    lp -n N path/to/filename
  • Print only certain pages to the default printer (print pages 1, 3-5, and 16):
    lp -P 1,3-5,16 path/to/filename

© tl;dr; authors and contributors