LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-01-2003, 04:05 PM   #1
pdmackenzie
Member
 
Registered: Dec 2002
Location: toronto
Distribution: mandrake 10
Posts: 135

Rep: Reputation: 15
What is the diffference between 'more' and 'less'


Hello!
I have consulted the "Alphabetical Directory of Linux Commands" at http://www.oreillynet.com/linux/cmd/ , but the difference between 'more' and 'less' is still unclear to me. Any quick answers?

thanks in advance,
doug
 
Old 02-01-2003, 04:06 PM   #2
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 57
more is older, and just lets you scroll a page at a time when you hit a key.

less is newer, and lets you scroll up and down a page or a line at a time.
 
Old 02-01-2003, 04:37 PM   #3
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Apart from what mhearn said, more is released under BSD license and less is its 'new and improved' GNU version released under GPL

less responds to most vi style keys h,j,k,l, ctrl-F,ctrl-B etc and you can scroll both up and down one line at a time. 'more' is more rigid whereas 'less' is less rigid.
 
Old 02-01-2003, 06:53 PM   #4
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
"less" can handle binary files without causing problems with your
terminal. "less" loads an entire file in before display, while "more"
only opens what you ask for. Loading an entire file in means you
can easily page both to the end and to the beginning of the file,
loading just bits of a file means you don't use as much memory.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration