PDA

View Full Version : difference in command


andyf
12-01-2006, 05:31 PM
Guys, what is the difference between using command " cat filename " and " more filename "
thanks...:)

Vege
12-01-2006, 06:30 PM
same as dir /p vs dir in dos.

more gives you "press key to show more" if all content can't fit into screen. Cat dont give that option.

nox-Hand
12-02-2006, 06:03 PM
I never used more, and never looked into cat.. I use 'less', which I am guessing is less than Cat, and even less than more? :lol:

Vege
12-03-2006, 09:04 AM
"man less"

Less is a program similar to more (1), but which allows backward movement in the file as well as forward movement. Also, less does not have to read the
entire input file before starting, so with large input files it starts up faster than text editors like vi (1). Less uses termcap (or terminfo on some
systems), so it can run on a variety of terminals. There is even limited support for hardcopy terminals. (On a hardcopy terminal, lines which should be
printed at the top of the screen are prefixed with a caret.)

Commands are based on both more and vi. Commands may be preceded by a decimal number, called N in the descriptions below. The number is used by some com‐
mands, as indicated.