Linux Command Directory
This directory of Linux commands is from Linux in a Nutshell, 5th Edition.
Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.
ptx [options] [infiles] ptx -G [options] [infile [outfile] ]
Create a permuted index, including context, from the contents of the specified input files. If the input files are omitted, or are
Produce automatically generated references, consisting of the filename and line number, separated by a colon, and print them at the beginning of each line.
The specified file contains word-break characters—characters that are not part of words, but separate them.
Display the ptx copyright information and exit.
Ignore case when sorting, by folding lowercase into uppercase.
Use string to flag line truncations.
Specify the number of spaces between output columns.
Behave like System V ptx; don't use the GNU extensions. If an output file is specified, any existing contents are lost.
Display a help message and exit.
Read the list of words that are not to be used as keywords in the concordance output from file.
Select a string for use when generating output suitable for nroff, troff or T
EX. The default is xx.
Specify the "only" file, which contains a list of words to be used in the concordance output. Any words not in file are ignored. If both an only file and an ignore file are specified, a word must appear in the only file and not appear in the ignore file to be used as a keyword.
Format the output as roff directives suitable to be used as input to nroff or troff. Use -T for T
Use the first field of each line as a reference to identify the line in the permuted index.
Put references on the right, instead of the left. Used with -r and -A. The space taken up by the references is not taken into account by -w, even if -R is specified without -r or -A.
Specify a regular expression to identify the end of a line or a sentence. Without -G and without -r, the end of a sentence is used. With -G, or with -r, the end of a line is used. An empty regex disables end-of-line or end-of-sentence recognition.
Format the output as T
EX directives suitable to be used as T EX input. Use -O for roff output.
Print version information and exit.
Select the maximum output-line width (excluding the width of any reference if -R is specified).
Use the specified regular expression to match each keyword.