A lot of stuff...
You can put a lot of stuff in less. For example, cat /path/filename | less will shove that file into less, much as if it were the DOS type command, except you can move up and down through less, and q quits less.
grep etc. | less also moves stuff to less. ETc. is really etc. not a command option.
If you see something that could make an output to standard out, which is screen, you can almost always pipe it to less.
I think recenlty I was looking for a certain file on Cd, to find out which rpm had it, after moving file browser to the C-D Rpm folder, I did:
rpm -qpl * | less
and I got all the files in all the rpm's in less. I am not sure, because that is like many MB, so maybe it was a subfolder, but I think it was all the files. Usually, I prefer to make a file of files, so to speak:
rpm -qpl * > /path/filename.txt then I can have it on hand to open with a word processor or KATE any tme I want. In this case, I was in a hurry so I less-ed it.
Also, rpm -qpi * | less
gives you all the info on the rpms
Do not be afraid to experiment.
By the way, more also works in linux, see man more, but it is so primitive compared to linux that almsot no one ever mentions it.
Last edited by irlandes; 08-12-2004 at 10:48 PM.