Snippets are tiny notes I've collected for easy reference.
Use 'less -S' for horizontal scrolling
The flag -S
(or --chop-long-lines
) will cause less
to truncate lines at the screen (terminal) boundary, rather than wrapping as it does by default. You can then scroll horizontally (with the arrow keys, for example) to view the full lines when needed.
cat some_file_with_very_long_lines | less -S
Snippets are tiny notes I've collected for easy reference.