Ubuntu – the difference between “more” and “less” commands

command linelessmore

What is the difference between the two commands below?

more file-name
less file-name

Best Answer

more is the oldest, less is an improvement and most is an improvement on that.

Short comparison:

  • more: forward navigation and limited backward navigation.
  • less: both forward and backward navigation and also has search options. You can go to the beginning and the end of a file instantly. Plus you can switch to an editor (like open the file in vi or vim). It is noticeably quicker than editor for when the file is large.
  • most: has all the features of more and less but you can also open multiple files, close 1 file at a time when you have multiple files open, allows locking and scrolling of the open windows and allows for splitting of open windows.

All 3 use the h to let you view the keybindings for the command.