Dit deel is nog niet vertaald. Je ziet de Engelse tekst.
Wat het doet
Zo schrijf je het
more [OPTIONS] FILE...
COMMAND | moreBelangrijkste delen
Keys inside more
Space- Next page.
Enter- Next line.
b- One page back (only for files, not pipes).
/pattern- Search forward. n = next match.
=- Show the current line number.
v- Open the file in your editor at the current line.
h- Help.
q- Quit.
Opties 14
Meest gebruikt
Niets past bij dit filter.
Voorbeelden 11
$ als gewone gebruiker# als root (of met sudo)
1Read a file page by page
more /etc/servicesSpace = next page, q = quit.
2Page through long output
ps aux | moreOn minimal systems without less.
3Start at line 100
more +100 /var/log/messagesSkips the first 99 lines.
4Start at the first match of a word
more +/sshd /var/log/messagesJumps to the first line with sshd.
5Show friendly prompts instead of a beep
more -d READMEHelpful for people new to the terminal.
6Squeeze empty lines
more -s notes.txtSeveral empty lines become one.
7Show 20 lines per page
more -20 /etc/passwdUseful on small screens or in serial consoles.
8Page through the environment (Red Hat cheat sheet style)
env | moreClassic combination to read a long list.
9Read several files one after the other
more /etc/hosts /etc/resolv.confThe file name is shown between them;
:ngoes to the next file.10Open the editor from more
more /etc/fstab (press v to open the file in vi at the current line)Quick way from reading to editing.
11Use more as the pager for man (if less is missing)
PAGER=more man lsAny program that uses $PAGER can use more.
Niets past bij dit filter.
Let op
- Going back with
bdoes not work when more reads from a pipe.
Tips om te onthouden
- more = forward only, simple. less = forward and back, search, follow.