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.
more [options] [files]
Display the named files on a terminal, one screenful at a time. See less for an alternative to more.
Begin displaying at line number num.
Set screen size to number lines.
Begin displaying two lines before pattern.
Repaint screen from top instead of scrolling.
Display the prompt "[Press space to continue, `q' to quit] " instead of ringing the bell. Also display "[Press `h' for instructions] " in response to illegal commands.
Count logical rather than screen lines. Useful when long lines wrap past the width of the screen.
Ignore form-feed (Ctrl-L) characters.
Page through the file by clearing each window instead of scrolling. This is sometimes faster.
Squeeze; display multiple blank lines as one.
Suppress underline characters.
All commands in more are based on vi commands. You can specify a number before many commands to have them executed multiple times. For instance, 3:p causes more to skip back three files, the same as issuing :p three times. The optional number is indicated by num in the following list.
Display next screen of text.
Display next num lines of text, and redefine a screenful to num lines. Default is one screenful.
Display next num lines of text, and redefine a screenful to num lines. Default is one line.
Scroll num lines of text, and redefine scroll size to num lines. Default is one line.
Skip next num lines of text. Default is one line.
Skip forward num screens of text. Default is one screen.
Skip backward num screens of text. Default is one screen. Does not work on pipes.
Return to point where previous search began.
Print number of current line.
Search for pattern, skipping to numth occurrence if an argument is specified.
Display a summary of commands.
Repeat last search, skipping to numth occurrence if an argument is specified.
Invoke shell and execute cmd in it.
Invoke an editor on the file at the current line. Use the editor in the environment variable VISUAL if defined, or EDITOR if that is defined; otherwise, default to vi.
Skip to next file, or numth file if an argument is specified.
Skip to previous file, or numth previous if an argument is specified.
Print current filename and line number.
Re-execute previous command.
Page through file in "clear" mode, and display prompts:
more -cd file
Format doc to the screen, removing underlines:
nroff doc| more -u
View the manpage for the more command; begin at the first appearance of the word "scroll":
man more|more +/scroll