less

General information

Command: less

Description: Use less to display the content of a file

Usage: less <filename>

common options: n.a.

Acts on: files

Action: The contents of the file are displayed in the shell. The output is limited to the number of rows that fit into the current size of the shell. Hit the space bar to move to the next set of lines. Arrows can be used to move up and down line by line.

Exit: hit q to exit

Examples

less ~/.bashrc

Action: displays the contents of your .bashrc configuration file

Alternatives

  1. cat