less [options] fileArguments explained
- file is the text file to view.
- +F follows appended output like tail -f.
- -S chops long lines instead of wrapping them.
Common examples
less /var/log/syslogOpens the log with scroll and search support.
less /etc/ssh/sshd_configPress / then type a pattern to search while viewing.
| Field | Details |
|---|---|
| Command | less |
| Category | Viewing Content |
| Primary use | Opens text in a scrollable pager. |
| Syntax | less [options] file |