Difference between ‘less’ and ‘more’ linux commands

We know both “less” and “more” commands could be used to show contents which might exceed a whole screen page. As defined: “more” is a filter for paging through text one screenful at a time. The “less” is similar but could do more things, yes “less” is more! :P

(1) “less” supports at least the following:

‘space’ – next screen page

‘enter’ – next line

‘up arrow’ – previous line

‘down arrow’ – next line

(2) “more” basically only support:

‘space’ – next screen page

‘enter’ – next line

“more” cannot get back to previous line or page

 

全文完,转载时请注明作者和出处)


(转载本站文章请注明作者和出处 烟客旅人 sigmainfy — http://www.sigmainfy.com,请勿用于任何商业用途)

Written on July 2, 2013