11 · The Command Line

cat / less

Read a file in the terminal

cat dumps a whole file to the screen; less opens it in a scrollable view you can page through and search (press q to quit).

Concrete example

“cat package.json” prints the file; “less app.log” lets you scroll a long one calmly.