more / less

What is "more" and "less"?

Lets say you have a file with a LOT of lines, when using the command cat to read it on your terminal screen, you don't know where to start reading and you automatically scroll back up.

when piping the command cat <file> to the tool ; more or less, you will see that it is way easier to manage / read these files in the terminal.

How to use "more" and "less"

Be sure to understand the pipecommand first

cat /etc/passwd | more # When pressing "enter" you can continue to the next line
cat /etc/passwd | less # When pressing "enter" you can continue to the next line

# after providing the command, you can quit with "q" or by holding "enter" .

Last updated