Which commands will print two copies of the file to the default printer?

Which commands will print two copies of the file to the default printer?

(Choose all that apply)

Which commands will print two copies of the file to the default printer?

(Choose all that apply)

A.
cat hosts | lpr -#2

B.
lpr -K2 hosts

C.
lpr -P -count 2 hosts

D.
for 1 in 2 lpr hosts

Explanation/Reference:
From the man pages:
lpr – off line print
SYNOPSIS
lpr [ -A ] [ -B ] [ -b,l ] [ -C class ] [ -D debugopt ] [ -F filterformat ] [ -G ] [ -h ] [ -i indentcols ] [ -k ] [ -J job ] [ -K,# copies ]
            [  -m mailTo ] [ -o options ] [ -P printer ] [ -Q ] [-r ] [ -R remoteAccount ] [ -s ] [ -T title ] [ -U user ]
            [ -V ] [ -w width ] [ -X userfile  ]  [  -Y  ]  [  -Z options ] [ -1,2,3,4 font ] [ filename …  ]

CAUTION: -K does not work on CUPS systems



Leave a Reply 0

Your email address will not be published. Required fields are marked *