Skip to main content

Open a file for interactive reading, allowing scrolling and search.

# To open a file:
less source_file

# To page down / up:
<Space> (down), b (up)

# To go to end / start of file:
G (end), g (start)

# To forward search for a string (press n/N to go to next/previous match):
/something

# To backward search for a string (press n/N to go to next/previous match):
?something

# To open the current file in an editor:
v

# To exit:
q