Total Pageviews

My YouTube Channel

Sunday, 24 January 2016

Use of More and Less Command

I have been always asked in my sessions that what is difference between more and less. 


esxcli --help | more
a. Use the more command to scroll down. The more command scrolls down only.
b. Press the space bar to scroll one screen at a time.
c. Press Enter to advance one line at a time.

esxcli --help | less
a. Use the less command to scroll up and down in the input.
b. Press Ctrl+F to go forward in the output.
c. Press Ctrl+B to go backward in the output.
d. Use the up and down arrow keys to navigate backward and forward one line at a time.
e. Press q to quit the less command and return to the command line