This video will talk about more and less.
So do you need more or do you need less?
More was the original file pager.
We call it a file pager because it allows you to read the text file page by page.
Now, in Linux, the latch utility was developed to offer some more features.
And as a reaction to that, More was developed a bit more.
But still, you can do more with less.
Does it make sense? It absolutely does. Less is the default pager file in Linux. Let's do a quick demo.
So I'm going to use sudo less on var log messages.
If you're on Ubuntu, you need to use sudo less on var log syslog because they don't have messages.
Now I am going to do what? Well, I'm going to scroll down, scroll forward a little
bit and hey, I want to know if there's anything about ssh. So I'm using ssh.
And look at that. Messages about ssh.
That's how you can use less to scroll through a file. If you think that looks
familiar. Yeah, there's a reason for it, and that is because man and Less are based
on the same backend. You could say that man is built on top of Less.
So the same key sequences apply, like Q to quit.
Now, one more thing about less, and that's more.
Let's use sudo more on var log messages.
There. I'm using spacebar to scroll down and I'm using the arrow key to scroll up.
That is one of the things that more couldn't do in the beginning.
Earlier versions of More, you could only go down. That's why it's called more.
It could only show you more of the fell. It couldn't show you less of the fell.
And when I say that More is doing a little bit more than in the
days before. Well, it's mainly about the option to scroll up in your file.
But in the end, more and Less are pretty much the same. More or less, use
cue to get out of here and let's have a look at the next video.