- L -

COMMAND NAME
learn
FORMAT
learn 
DESCRIPTION
Learn UNIX. This command provides a Computer Aided Interface (CAI). To end the command type either bye or Ctrl-c.
OPTIONS
None.
ARGUMENTS
None.
EXAMPLE
learn 

 
COMMAND NAME
lp
FORMAT
lp [ -dprinterqueue ] filename(s)
DESCRIPTION
Print file(s) with filename(s) ("lp" stands for "line printer"). With no option(s) prints the file(s) to the default printer.
OPTIONS
-dprinterqueue  Specify the printer's queue instead of using the default.
ARGUMENTS
The filename(s) to print.
EXAMPLE
lp -dprinter2 .profile

 
COMMAND NAME
lpq
FORMAT
lpq [ -Pprinterqueue ]
DESCRIPTION
Display printer queues' jobs. Displays information about the file(s) in the printer's queue; its owner name, id, size and its filename. The filename displayed is the temporary filename in the printer's queue and not the file's name.
OPTIONS
-Pprinterqueue  Specify the printer's queue instead of using the default.
ARGUMENTS
None.
EXAMPLE
lpq

 
COMMAND NAME
lpr
FORMAT
lpr [ -h -Pprinterqueue ] filename(s)
DESCRIPTION
Print the filename(s) to the line printer. Sends the filename(s) to the line printer's queue. With no arguments, standard input is being printed (end with Ctrl-q). 
OPTIONS
-h         Print no header.
-Pprinterqueue  Specify the printer's queue instead of using the default.
ARGUMENTS
The name(s) of the file(s) to be printed.
EXAMPLE
lpr -Php5000 myaddressbook.txt

 
COMMAND NAME
lprm
FORMAT
lprm [ -Pprinterqueue ] fileid(s) | fileowner| filename
DESCRIPTION
Remove the file(s) with the information provided from the printer's queue. The file id and filename are provided by lpq.
OPTIONS
-Pprinterqueue  Specify the printer's queue instead of using the default.
ARGUMENTS
fileowner    Removes from printer's queue all the files with the file owner provided.
fileid           Remove from printer's queue the file with the file id provided.
filename      Remove from printer's queue the file with the specified filename.
EXAMPLE
lprm 03847

 
COMMAND NAME
lpstat
FORMAT
lpstat [ -tr|-u username|-p printer
DESCRIPTION
Look at the progress of print request(s)."lpstat" stands for "line printer statistics".
OPTIONS
-t Give total information about printer status.
-p printer Give information about printer printer.
-r shows whether print scheduler is on or off. 
-u username shows print request status for user username.
ARGUMENTS
fNone.
EXAMPLE
lpstat -u john

COMMAND_NAME
ls
FORMAT
ls [-CFRR*acdglrstu] [ list of filenames|directories ]
DESCRIPTION
For each directory named, list its contents and any other information requested; for each filename, list the requested information.
OPTIONS
-C List entries by columns.
-F List directories with /.
-R List subdirectories too.
-R* List subdirectories too (only two levels lower from current directory).
-a  List all entries, including files that begin with a dot (.).
-c Sort entries by time of last modification (latest first) rather than by name.
-d List directories only.
-g List hidden files or directories (that begin with a dot (.)).
-l
List in long format the mode, number of links,  owner, group, size and time of last modification.
-r List in reverse order.
-s List size into 1024 byte-blocks.
-t Sort contents by time of last modification (latest first) rather than by name.
-u Use time of last access instead of last modification for sorting (with –t option) or printing on the screen (with -l option).
ARGUMENTS
A file name or a directory name. If no filename or directory name is given, the current directory is listed.
EXAMPLE ls -Fal



Creator: John N. Kostaras - email: jnkostaras@mail.gr
Last modification: 26 July 2001.
URL: http://jnkostaras.freeservers.com/l_unix.html