Linux/Unix more command FAQ: Can you share some Linux more command examples?
The Unix/Linux more command lets you scroll through large files, or large amounts of output from other commands.
Linux more command examples
To scroll through the contents of a large file named "large_file" you can use the Unix more command like this:
As a quick aside, I see a lot of people use the Linux cat command and more commands this way:
cat large_file | more
and I just wanted to note that this is not necessary.
Linux more command keystrokes
Once the more command has control of the screen you can use the [UpArrow] and [DownArrow] keys to scroll up and down through the file, one line at a time; the letter
f to move forward one screen at a time; the letter
b to move backwards one screen at a time; and you can search using the
/ key, just like you do when using the vi editor. There are actually a bunch of additional commands you can use, and I recommend that you look at the
more man page on your system (type
man more) for more information.
The other way the Unix more command is used is to pipe output into it, like this:
ls -al | more
ps auxwww | more
Unix/Linux more command examples - Summary
I hope these Unix and Linux more command examples have been helpful. If you know of any other more command examples you'd like to share, just leave a note in the Comments section below.