The less command

For me is the improved commando “more” version.
Less command has a set of options that make it more robust and versatile , such as the power forward and backward with the cursor , highlight words found.

This command has the following options;

less options
Space BarIf the space bar is pressed, the less advance one number equal to the number of lines per screen that holds the terminal being used lines.
Enter keyPressing the enter key is advancing in a line.
GIf the G key is pressed Go to the end of the text.
gIf the G key is pressed Go to the top of the text.
/Enter a word to be looked forward in the text.
nFind the next occurrence of the search.

Some examples

less

 Enter a word to be looked forward in the text.

less

 

If the g key is pressed Go to the top of the text.

 

less

 

If the G key is pressed Go to the end of the text.

 


Leave a Reply

Your email address will not be published.