What are cat, less, and more used for?

Answer

cat file concatenates and prints the full contents of a file to stdout — ideal for short files or combining multiple files (cat a.txt b.txt > combined.txt). more file is a pager that displays content one screen at a time — press Space to advance and q to quit; it only scrolls forward. less file is an improved pager that supports both forward and backward navigation with arrow keys and Page Up/Down. less also supports searching with /pattern and does not load the entire file into memory, making it suitable for very large log files.