First page Back Continue Last page Image

The more and less Commands

So far we have been viewing files with the “cat” command, which is a dump of the file to the default output device (your Computer Screen). There are some other commands that allow you to view human readable files that have more features

more

less

Command filename

more tic-tac-toe.py

less tic-tac-toe.py

1 page at a time

Yes

Yes

Next Page

Spacebar

Page Down Key (or spacebar)

Previous Page

b (earlier versions did not allow this)

Page Up Key

Search while listing

/string

/string

Find Next Occurrence

n (forward only)

n forward & N backward

Start at Line 20

more +20 tic-tac-toe.py

less +20 tic-tac-toe.py

Exit

q

q

Feature

cat Alternatives