Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-19-2008, 07:14 AM   #1
LQ Newbie
Registered: Jan 2008
Posts: 11

Rep: Reputation: 0
Difference between less and more command


Please let me know the main difference between less command and more command i.e. what exactly different thing we can archive from less or more which we can't achieve from next one. As per usage i find both working in same way.
Old 06-19-2008, 07:20 AM   #2
Senior Member
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Less is so much more! 'less' is also happy to read gz files (if it is zless) and is also useful for peeking at binary files and special files like device nodes.
Old 06-19-2008, 01:22 PM   #3
Mr. C.
Senior Member
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 61
"More" was created long ago, as a pager. It would prompt "-more-" at the bottom of the screen - hence, its name.

However, "more" was fairly limited, and additional development on "more" had stopped. So, along came "less" (with the cute play on words that "less" is "more"). Less continues to be improved even to this day, whereas more is basically dead. Use less.
Old 06-19-2008, 04:49 PM   #4
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
And while less is more, most is um, well, um. Well, it's most.
Old 06-21-2008, 04:54 AM   #5
LQ Newbie
Registered: May 2008
Posts: 21

Rep: Reputation: 0
1) You can navigate the page up/down using the less command and not possible in more command.
2) You can search a string in less command.
Old 06-21-2008, 05:14 AM   #6
Registered: Feb 2004
Location: UK
Distribution: RHEL5/6, Solaris 10/11, NetBSD, OpenBSD, FreeBSD, MacOS
Posts: 223

Rep: Reputation: 42
Originally Posted by atul_sp View Post
As per usage i find both working in same way.
You'll probably find on quite a few modern distros that the 'less' and 'more' commands are actually running the same binary. RHEL/CentOS seems to be a notable exception though.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
lv command difference between -L and -l vinodkumarmj Linux - Software 2 05-30-2006 09:04 AM
Difference between Console, Shell, and Command Prompt Anupam Pathak Linux - Newbie 3 10-23-2005 04:40 AM
Command not found error - difference in shell? aw_wolfe Linux - Newbie 6 04-20-2005 04:49 PM
folder names difference in KDE and the command line twallstr Linux - Newbie 2 10-04-2004 01:26 PM
Command difference?? partimegeek Linux - Newbie 3 04-26-2004 05:10 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:32 PM.

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