Commands.app

less

Text Processing

View file contents with pagination

Examples
Common usage examples

View file with pagination

less file.txt

Follow file (similar to tail -f)

less +F /var/log/syslog
Notes
  • Press 'q' to quit
  • Use arrow keys or Page Up/Down to navigate
  • Press '/' to search, 'n' for next match
  • Press 'g' to go to beginning, 'G' to go to end
Related Commands
You might also find these useful