Advanced

The less command

Posted by annamese on · 1 comment
Linux and Life
Mail this story
Print this story

The "cat" command is one of the most popular linux commands. It is used to display a file in the terminal. However, one problem is that when using "cat" to read a big file, it will display the whole file in the terminal so you will have to scroll up a huge wall of text to read the file. The "less" command is somewhat similar to "cat", it is also used to read a file but "less" displays only a part of the file instead of the whole file. To read files with "less", you just need to scroll up and down. The real advantage of "less" is that because it doesnt read the entire file so with very huge files, "less" will start faster than "cat" or any text editor like vi.

Full Story

  Nav
» Read more about: Story Type: Tutorial

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

Comments (1)

I'd rather get the most, especially out of my man. On Ubuntu: sudo apt-get install most sudo update-alternatives --config pager man most

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post