next up previous contents
Next: The Info System Up: UNIX Previous: Redirecting Input and Output   Contents

The HELP System

The UNIX on-line system is called man (short for manual). To get information about the ls command for example type:-

man ls
Now press RETURN to step through the help line by line or press the space bar to step screen by screen. To quit before the end press q.

This only works if you know the name of the command. Many UNIX commands are not exactly intuitive (cat to type for example) and then you need to use the -k option. Typing:-

man -k
xxx gives a list of all the subjects that have the keyword xxx as part of the title. If you did not know the cat command you could try:-
man type
but unfortunately that won't list cat. If you are persistent you will probably try:-
man -k print
sooner or later which would list it.

The way man works is not very flexible; you are forced to read from start to end and cannot move back. To get round this, direct the output from man into a temporary file e.g.:-

man cat $>$ temp
and then run the more command on this file:-
more temp
The more command allows you to display any part of the file. Once more is running just press ? to get a list of the commands. In fact you can press ? even when you run man directly but not all the commands work in this case and in particular those that move back through the file.

As you might expect, to get more information on man type:-

man man


next up previous contents
Next: The Info System Up: UNIX Previous: Redirecting Input and Output   Contents
P.D. Gronbech (IT Staff) 2015-10-02