O'Reilly logo

SAMS Teach Yourself Unix in 10 Minutes by Robert Shimonski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The more Command

All you need to do to use more is to type the command followed by the file or files you want to display. This command is similar to cat. The tricky part is memorizing when to use which and having that knowledge at your fingertips when you need it most. Let's take a look at the more command in action:

>more hosts.allow
(Output removed)

For this command you will need to have a file that is long enough to scroll off your screen and warrants the use of the command. If you type in the wrong command, or you specify a file that is not long enough to scroll off the screen, more will more or less do nothing for you. (Pun intended.)

When you use the more command with a long file, you immediately see something new on your terminal screen. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required