Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /usr/share/doc/cups-1.3.7/help/ drwxr-xr-x |
Viewing file: options.html (24.36 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | CUPS provides both the System V (lp(1)) and Berkeley (lpr(1)) printing commands for printing files. In addition, it supported a large number of standard and printer-specific options that allow you to control how and where files are printed. Printing FilesCUPS understands many different types of files directly, including text, PostScript, PDF, and image files. This allows you to print from inside your applications or at the command-line, whichever is most convenient! Type either of the following commands to print a file to the default (or only) printer on the system: lp filename lpr filename Choosing a PrinterMany systems will have more than one printer available to the user. These printers can be attached to the local system via a parallel, serial, or USB port, or available over the network. Use the lpstat(1) command to see a list of available printers: lpstat -p -d The Use the lp -d printer filename or the lpr -P printer filename Setting the Default PrinterIf you normally use a particular printer, you can tell CUPS to use it by default using the lpoptions(1) command: lpoptions -d printer Printing the Output of a ProgramBoth the lp and lpr commands support printing from the standard input: program | lp program | lp -d printer program | lpr program | lpr -P printer If the program does not provide any output, then nothing will be queued for printing. Specifying Printer OptionsFor many types of files, the default printer options may be sufficient for your needs. However, there may be times when you need to change the options for a particular file you are printing. The lp and lpr commands allow you to pass
printer options using the lp -o landscape -o scaling=75 -o media=A4 filename.jpg lpr -o landscape -o scaling=75 -o media=A4 filename.jpg The available printer options vary depending on the printer. The standard options are described in the "Standard Printing Options" section below. Printer-specific options are also available and can be listed using the lpoptions command: lpoptions -p printer -l Creating Saved OptionsSaved options are supported in CUPS through printer instances. Printer instances are, as their name implies, copies of a printer that have certain options associated with them. Use the lpoptions command to create a printer instance: lpoptions -p printer/instance -o name=value ... The lpoptions -p LaserJet/duplex -o sides=two-sided-long-edge Instances do not inherit lpoptions from the main queue. Printing Multiple CopiesBoth the lp and lpr commands have options for printing more than one copy of a file: lp -n num-copies filename lpr -#num-copies filename Copies are normally not collated for you. Use the
lp -n num-copies -o Collate=True filename lpr -#num-copies -o Collate=True filename Canceling a Print JobThe cancel(1) and lprm(1) commands cancel a print job: cancel job-id lprm job-id The job-id is the number that was reported to you by the lp command. You can also get the job ID using the lpq(1) or lpstat commands: lpq lpstat Moving a Print JobThe lpmove(8) command moves a print job to a new printer or class: lpmove job-id destination The job-id is the number that was reported to you by the lp or lpstat commands. Destination is the name of a printer or class that you want to actually print the job. Note: Standard Printing OptionsThe following options apply when printing all types of files. Selecting the Media Size, Type, and SourceThe lp -o media=Letter filename lp -o media=Letter,MultiPurpose filename lpr -o media=Letter,Transparency filename lpr -o media=Letter,MultiPurpose,Transparency filename The available media sizes, types, and sources depend on the printer, but most support the following options (case is not significant):
The actual options supported are defined in the printer's PPD
file in the lpoptions -p printer -l When lp -o media=Custom.WIDTHxLENGTH filename lp -o media=Custom.WIDTHxLENGTHin filename lp -o media=Custom.WIDTHxLENGTHcm filename lp -o media=Custom.WIDTHxLENGTHmm filename where "WIDTH" and "LENGTH" are the width and length of the media in points, inches, centimeters, or millimeters, respectively. Setting the OrientationThe lp -o landscape filename lpr -o landscape filename The
Printing On Both Sides of the PaperThe lp -o sides=two-sided-short-edge filename lp -o sides=two-sided-long-edge filename lpr -o sides=two-sided-long-edge filename The default is to print single-sided: lp -o sides=one-sided filename lpr -o sides=one-sided filename Selecting the Banner Page(s)The lp -o job-sheets=none filename lp -o job-sheets=standard filename lpr -o job-sheets=classified,classified filename If only one banner file is specified, it will be printed before the files in the job. If a second banner file is specified, it is printed after the files in the job. The available banner pages depend on the local system configuration; CUPS includes the following banner files:
Holding Jobs for Later PrintingThe
Releasing Held JobsAside from the web interface, you can use the lp command to release a held job: lp -i job-id -H resume where "job-id" is the job ID reported by the lpstat command. Setting the Job PriorityThe Specifying the Output OrderThe Selecting a Range of PagesThe lp -o page-ranges=1 filename lp -o page-ranges=1-4 filename lp -o page-ranges=1-4,7,9-12 filename lpr -o page-ranges=1-4,7,9-12 filename As shown above, the The default is to print all pages. Selecting Even or Odd PagesUse the lp -o page-set=odd filename lp -o page-set=even filename lpr -o page-set=even filename The default is to print all pages. N-Up PrintingThe lp -o number-up=1 filename lp -o number-up=2 filename lp -o number-up=4 filename lpr -o number-up=16 filename The
The
Scaling to FitThe lp -o fitplot filename lpr -o fitplot filename The default is to use the size specified in the file. Note: Printing in Reverse OrderThe lp -o outputorder=reverse filename lpr -o outputorder=reverse filename Similarly, the lp -o outputorder=normal filename lpr -o outputorder=normal filename The default is Printing Mirrored PagesThe lp -o mirror filename lpr -o mirror filename This is typically used when printing on T-shirt transfer media or sometimes on transparencies. Raw or Unfiltered OutputThe lp -o raw filename lpr -o raw filename The lpr -l filename Text OptionsCUPS supports several options that are only used when printing plain text files. These options have absolutely no effect on PostScript, PDF, HP-GL/2, or image files. Setting the Number of Characters Per InchThe lp -o cpi=10 filename lp -o cpi=12 filename lpr -o cpi=17 filename The default characters per inch is 10. Setting the Number of Lines Per InchThe lp -o lpi=6 filename lpr -o lpi=8 filename The default lines per inch is 6. Setting the Number of ColumnsThe lp -o columns=2 filename lpr -o columns=3 filename The default number of columns is 1. Setting the Page MarginsNormally the page margins are set to the hard limits of the
printer. Use the lp -o page-left=value filename lp -o page-right=value filename lp -o page-top=value filename lp -o page-bottom=value filename lpr -o page-left=value -o page-right=value -o page-top=value -o page-bottom=value filename The Pretty PrintingThe lp -o prettyprint filename lpr -o prettyprint filename Turning Off Text WrappingThe lp -o nowrap filename lpr -o nowrap filename Not Supported on Mac OS XImage OptionsCUPS supports several options that are only used when printing image files. These options have absolutely no effect on PostScript, PDF, HP-GL/2, or text files. Positioning ImagesThe
Scaling ImagesThe lp -o scaling=percent filename lp -o ppi=value filename lpr -o natural-scaling=percent filename The The The Adjusting Image Hue (Tint)The lp -o hue=value filename lpr -o hue=value filename The
The default hue adjustment is 0. Adjusting Image Saturation (Color)The lp -o saturation=percent filename lpr -o saturation=percent filename The The default saturation is 100. HP-GL/2 OptionsCUPS supports several options that are only used when printing HP-GL/2 files. These options have absolutely no effect on PostScript, PDF, image, or text files. Printing in BlackThe lp -o blackplot filename lpr -o blackplot filename The default is to use the colors defined in the plot file or the standard pen colors defined in the HP-GL/2 reference manual from Hewlett Packard. Setting the Default Pen WidthThe lp -o penwidth=value filename lpr -o penwidth=value filename The pen width Note: |
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0128 ]-- |