-->
Previous Table of Contents Next


EDITING COMMANDS

Left arrow, Esc-h Moves the cursor one space to the left.
Right arrow, Esc-l Moves the cursor one space to the right.
Ctrl-left-arrow,
Esc-b, Esc-left-arrow
Moves the cursor one word to the left.
Ctrl-right-arrow,
Esc-w, Esc-right-arrow
Moves the cursor one word to the right.
Home, Esc-0 Moves the cursor to the beginning of the line.
End, Esc-$ Moves the cursor to the end of the line.
Backspace Deletes the character to the left of the cursor, or cancels a command.
Delete, Esc-x Deletes the character under the cursor.
Ctrl-Backspace,
Esc-Backspace
Deletes the word to the left of the cursor.
Ctrl-Delete, Esc-X,
Esc-Delete
Deletes the word under the cursor.
Up arrow, Esc-k Retrieves the previous command line.
Down arrow, Esc-j Retrieves the next command line.
Tab Completes a partial filename. If more than one filename matches, the potential filenames are cycled through every time tab is used.
Esc-tab Completes a partial filename. If more than one filename matches, the potential filenames are cycled in reverse through every time tab is used.
Ctrl-L Complete a partial filename. If more than one filename matches, all the potential filenames are displayed.
Ctrl-U Deletes a command line or cancels a command.

RELATED COMMAND

more

look......Looks for Lines

look option(s) string file

PURPOSE

The look command looks for lines beginning with string. If file isn’t specified, then /usr/dict/words is used.

OPTIONS

-a Uses the alternate dictionary /usr/dict/web2.
-d Compares only alphanumeric characters.
-f Ignore case.
-t Sets a string termination character.

RELATED COMMANDS

grep
sort

lpq......Checks Print Spool

lpq option(s) user

PURPOSE

The lpq checks the print spool (used by lpd) and also reports on the status of specified jobs, either by job-ID or user. By itself on a command line, lpq returns information about all jobs in the queue.

The lpq command reports the user’s name, current rank in the queue, the names of files comprising the job, the job identifier, and the total size in bytes.

OPTIONS

-l Prints information about each of the files in a job entry; the default is to truncate information at a single line.
-Pprinter Designates a specific printer; the default is the value of the PRINTER environment variable or the default line printer.

RELATED COMMANDS

lpc
lpd
lpr
lprm

lpr......Line Printer

lpr option(s) file(s)

PURPOSE

The lpr sends files to a print-spool daemon, when then sends files to the printer when it is available. The file options are used to designate specific types of files (the assumption is that a text file is on the way), so the printer can adjust accordingly.

FILE OPTIONS

-c Assumes the files are produced by cifplot.
-d Assumes the files are produced by TeX (DVI format).
-f Uses a filter that interprets the first character of each line as a standard FORTRAN carriage-control character.
-g Assumes the files are produced by plot routines.
-l Filters control characters as printable characters and suppresses page breaks.
-n Assumes the files are produced by ditroff.
-p Uses the pr command to format the files (same as print).
-t Assumes the files are produced by troff.
-v Assumes the files contain a raster image for devices like the Benson Varian.

GENERAL OPTIONS

-C class Specifies a job classification on the burst page.
-h Suppresses printing of the burst page.
-i [cols] Indents the output num number of columns. If no num is specified, then each line will be indented eight characters.
-m Sends mail when print job is complete.
-Pprinter Sends output to printer.
-r Removes file upon completion of spooling or upon completion of printing (with the -s option).
-s Uses symbolic links, instead of copying files to the spool directory. If you do this, do not change files until they have been printed.
-T title Specifies a title name for pr, instead of the filename.
-U user Specifies a user name to print on the burst page.
-wnum Uses num as the page width for pr.
-#num Prints num copies of each file.
-[num]font Specifies a font to be mounted on font position num.

RELATED COMMANDS

lpc
lpd
lpq
lprm
pr

lprm......Removes Print Jobs

lprm option(s) job-ID username

PURPOSE

The lprm command removes print jobs from the print spool. Use the lpq command to determine the job-IDs. You must own the job or be the superuser in order to remove print jobs.

OPTIONS

-Pprinter Specifies a printer queue instead of the default.
- Removes jobs owned by user.

RELATED COMMANDS

lpd
lpq
lpr


Previous Table of Contents Next