Prolog
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of thisinterface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.Name
lp - send files to a printerSynopsis
Change the default location for screenshots. If you don’t want macOS to save screenshots to your Desktop when you press Command-Shift-3, you can change the default location in Terminal. Defaults write com.apple.screencapture location path to folder where you want screenshots to be saved Hit Return. Killall SystemUIServer. One of such distinctive and most used application on daily basis is “Pages”. Pages is a word processing and page layout utility of iWork suite developed by Apple. One can effectively use this word processing application over Mac and iOS based devices. In spite of easy-use features, Pages documents can be lost from Mac in many ways.
lp [-c][-ddest][-ncopies][-msw][-ooption]... [-ttitle][file...]
Description
The lp utility shall copy the input files to an output destination in an unspecified manner. The default output destination should be to a hardcopydevice, such as a printer or microfilm recorder, that produces non-volatile, human-readable documents. If such a device is not available to the application, orif the system provides no such device, the lp utility shall exit with a non-zero exit status.
The actual writing to the output device may occur some time after the lp utility successfully exits. During the portion of the writing thatcorresponds to each input file, the implementation shall guarantee exclusive access to the device.
The lp utility shall associate a unique request ID with each request.
Normally, a banner page is produced to separate and identify each print job. This page may be suppressed by implementation-defined conditions, such as anoperator command or one of the -ooption values.
Options
The lp utility shall conform to the Base Definitions volume of IEEE Std 1003.1-2001, Section 12.2, Utility Syntax Guidelines.
The following options shall be supported:
- -m
- Send mail (see mailx ) after the files have been printed. By default, no mail is sent upon normal completion of the print request.
- -n copies
- Write copies number of copies of the files, where copies is a positive decimal integer. The methods for producing multiple copies and forarranging the multiple copies when multiple file operands are used are unspecified, except that each file shall be output as an integral whole, notinterleaved with portions of other files.
- -o option
- Specify printer-dependent or class-dependent options. Several such options may be collected by specifying the -o option more thanonce.
- -s
- Suppress messages from lp.
- -t title
- Write title on the banner page of the output.
- -w
- Write a message on the user's terminal after the files have been printed. If the user is not logged in, then mail shall be sent instead.
Operands
The following operand shall be supported:
- , the standard input shall be used.If a file operand is used, but the -c option is not specified, the process performing the writing to the output device may have user and grouppermissions that differ from that of the process invoking lp.
Stdin
The standard input shall be used only if no file operands are specified, or if a file operand is '-' . See the INPUT FILES section.
Input Files
The input files shall be text files.
Environment Variables
The following environment variables shall affect the execution of lp:
Macos Man Pages
Stderr
The standard error shall be used only for diagnostic messages.
Output Files
None.
Extended Description
None.
Exit Status
The following exit values shall be returned:
- All input files were processed successfully.
- *
- A requirement for multiple printers
- *
- Options for supporting various page-description languages
A conforming application can use one of the file operands only with the -c option or if the file is publicly readable and guaranteed to beavailable at the time of printing. This is because IEEE Std 1003.1-2001 gives the implementation the freedom to queue up the request for printing at some latertime by a different process that might not be able to access the file.
Examples
- -ddest, LPDEST, or PRINTER are used, however.)
This volume of IEEE Std 1003.1-2001 is worded such that a 'print job' consisting of multiple input files, possibly in multiple copies, is guaranteed toprint so that any one file is not intermixed with another, but there is no statement that all the files or copies have to print out together.
The -c option may imply a spooling operation, but this is not required. The utility can be implemented to wait until the printer is ready and thenwait until it is finished. Because of that, there is no attempt to define a queuing mechanism (priorities, classes of output, and so on).
On some historical systems, the request ID reported on the STDOUT can be used to later cancel or find the status of a request using utilities not defined inthis volume of IEEE Std 1003.1-2001.
Although the historical System V lp and BSD lpr utilities have provided similar functionality, they used different names for the environmentvariable specifying the destination printer. Since the name of the utility here is lp, LPDEST (used by the System V lp utility) was givenprecedence over PRINTER (used by the BSD lpr utility). Since environments of users frequently contain one or the other environment variable, thelp utility is required to recognize both. If this was not done, many applications would send output to unexpected output devices when users moved fromsystem to system.
Some have commented that lp has far too little functionality to make it worthwhile. Requests have proposed additional options or operands or boththat added functionality. The requests included:
Given that a compliant system is not required to even have a printer, placing further restrictions upon the behavior of the printer is not useful. Sincehardcopy format is so application-dependent, it is difficult, if not impossible, to select a reasonable subset of functionality that should be required on allcompliant systems.
The term unspecified is used in this section in lieu of implementation-defined as most known implementations would not be able to makedefinitive statements in their conformance documents; the existence and usage of printers is very dependent on how the system administrator configures eachindividual system.
Since the default destination, device type, queuing mechanisms, and acceptable forms of input are all unspecified, usage guidelines for what a conformingapplication can do are as follows:
- pr and fold utilities can be used to achieve reasonable formatting for the defaultpage size of the implementation.
Alternatively, the application can arrange its installation in such a way that it requires the system administrator or operator to provide the appropriateinformation on lp options and environment variable values.
At a minimum, having this utility in this volume of IEEE Std 1003.1-2001 tells the industry that conforming applications require a means to print output andprovides at least a command name and LPDEST routing mechanism that can be used for discussions between vendors, application writers, and users. The useof 'should' in the DESCRIPTION of lp clearly shows the intent of the standard developers, even if they cannot mandate that all systems (such as laptops)have printers.
This volume of IEEE Std 1003.1-2001 does not specify what the ownership of the process performing the writing to the output device may be. If -c isnot used, it is unspecified whether the process performing the writing to the output device has permission to read file if there are any restrictions inplace on who may read file until after it is printed. Also, if -c is not used, the results of deleting file before it is printed areunspecified.
Future Directions
None.
See Also
mailx
Copyright
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1,2003 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright ©2001-2003 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and theoriginal IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained onlineat http://www.opengroup.org/unix/online.html .Referenced By
cancel-cups(1),chemtool(1),cupsaccept(8),cupsenable(8),ee(1),enable(8),lpadmin(8),lpc-cups(8),lpmove(8),lpoptions(1),lppasswd(1),lpq-cups(1),lpr-cups(1),lprm-cups(1),lpstat-cups(1),smb.conf(5),xdpr(1)
Mac operating system offers its users with rich graphics and attractive interface. The users can even find many unique and interactive applications in Macintosh system. One of such distinctive and most used application on daily basis is “Pages”. Pages is a word processing and page layout utility of iWork suite developed by Apple. One can effectively use this word processing application over Mac and iOS based devices.
Pages Macos Big Sur
In spite of easy-use features, Pages documents can be lost from Mac in many ways. One of the most common reasons is human mistakes. Assume that your Mac system contains varieties of files like Pages documents, presentations, HTML files, music files, pictures, video files, etc. Recently you thought to store all the files of unique format in separate folders, so you opted for Cut – Paste operation. While repositioning your Pages documents using Cut – Paste keys, in some illusion before pasting the cut Pages files you selected some other files and performed Cut – Paste operation. When you realized that some of the Pages documents are missing, it was too late to restore them from system clip board. If you have faced similar kind of scenario, then don’t worry!! For your good luck, there is lost Pages documents recovery software that can get back missing Pages files on your Macintosh machine. Here are some other reasons that results in loss of Pages documents on Mac system.
- Formatting the Mac volume containing Pages documents can lead to loss of valuable Pages files along with other files preserved on Mac system
- Unauthenticated third party utilities, which you have installed in your Macintosh system might cause loss of the Pages documents without your knowledge
- Due to abrupt system shutdown while transferring Pages documents from Mac system to other devices may leads to loss of essential Pages documents from Mac system
- Critical issues like formation of bad sectors, inaccessible Mac volumes, Journal or Catalog file corruption, etc. will cause loss of large number of files along with Pages documents stored on Mac
The loss of Pages documents could happen by any means, but lost Pages files can be restored with the help of reliable Mac File Recovery software.
Features of Pages document retrieval utility:
Yodot Mac File Recovery tool can retrieve lost Pages documents on Mac system. Its versatile user graphical interface aids you to rescue Pages files without any technical knowledge. This software is uniquely designed with advanced searching algorithms therefore one can achieve expected outcomes. Along with Pages files, the software is capable of extracting deleted or lost Word documents, Excel files, HTML files and other formats on Macintosh computer. You can even bring back files and folders from other storage drives like memory cards, USB drives, external hard drives, etc on Macintosh system installed with Mac OS X 10.5 (Leopard), Mac OS X 10.6 (Snow Leopard) and Mac OS X 10.7 (Lion) operating systems.
Macos Man Pages Locations
Steps to get back missing Pages documents on Mac system:
- Download Yodot Mac File Recovery application and install it to your Macintosh Computer
- Launch the tool and follow the main screen guiding instructions
- You will find a window with two options, “Deleted File Recovery” and “Lost File Recovery”
- Choose “Lost File Recovery” option to recover missing Pages files from Mac OS X
- The application scans the Mac computer and displays all the logical drives
- Select the volume from where you have to bring back lost Pages documents and click on “Next” option
- This utility scans selected Mac volumes and displays all the missing Pages documents in two different views, “Data View” and “File Type View”
- At last end the process by saving the recovered Pages documents to your desired destination location (Do not save on the same volume which may leads to overwriting of data)
Suggestions:
- It is a well-appreciated to backup your essential Pages documents on some external storage devices
- Avoid storing new files on Macintosh machine after any data loss
Related Articles
Learn how to find disappeared files from MacBook by going through this page.
Visit this page and get suitable method to restore files disappeared from your Mac desktop.
Read this page and discover the easiest way of accessing hidden files and folders on MacBook Pro.
Navigate this page to find missed files from iMac hard drive with ease.
Go according to steps explained in this page to restore hidden files from Mountain Lion system.
Go to this page to find out the best approach for restoring lost Apple Notes on Mac OS X.
Visit this page to know how exactly lost files can be recovered from 32GB ADATA DashDrive Elite UE700 USB drive on Mac.
Click here to know about best method for recovery of lost files from external hard drive on Mac OS X.
An advanced and realistic solution for easy restoration of lost files from a flash drive on Mac OS X.
This page unfolds the most efficient tool to restore files lost from MacBook Pro notebook.
Wondering how to recover Sticky Notes on MacBook? Then navigate through this page to know more about it.
Do you need help to restore lost files from Mac OS X? Then read this article.
Read this short article and get smart solution to recover hidden folders on Mac computers with great ease.