To Print a File Assignment Help

Assignment Help: >> Printer Management - To Print a File

To Print a File

A file can be printed through using the following command

# lpr [-l] [-Pprinter] [job # ...]

Options:

-P - Specifies a particular printer.

-l - Information about every file comprising the job entry is printed.

Practice

Let consider the following example describes to print file.

# lpr -Php /radiant/Krishen

The given example displays the usage of the lpr command, -p denotes the name of the printer,

/radiant/Krishen is the name of the file to be printed.

A /var/spool/lpd/hp directory is the spool directory whereas all the jobs of a printer queue are stored,

# /var/spool/lpd/hp/status are a file which holds the status of printer.

Example

# vi /var/spool/lpd/hp/status

Note:

Hp enabled and accepting the requests

# /var/spool/lpd/hp/lock file holds the print jobs.

Lock   file   is   used   to   get   the   pid   of   the   current   daemon   and   the   job   number   of   the presently active job.

lp is used to print a file in SCO and Solaris.

Syntax

lp [file name]

Let consider the following example.

# lp /Krishen

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd