Linux – less command

less = shows the content of a file

  • Less command can be used as Pagers to display contents of large files page by page or scroll line by line up and down.
  • Less have a lot of viewing options and search capability.
  • Interactive. To exit: ‘q’
  • less (“less is more”) a bit more smart than the more command
  • to display contents of a file:
  • To display line numbers:
  • To display a prompt:
  • Combine the two:
  • For more information:

man less


Partner Sites