Last time I wrote about a few tips that can make you more efficient when using the command line on Unix. Today I want to focus more on pager.
The most common usage of pager is to set it to a Unix pager such
as less. It can be very useful to view the result of a command
spanning over many lines (for instance SHOW ENGINE INNODB
STATUS):
mysql> pager less PAGER set to 'less' mysql> show engine innodb status\G [...]
Now you are inside less and you can easily navigate
through the result set (use q to quit, space to scroll down,
etc).
Reminder: if you want to leave your custom pager, this is easy,
just run pager:
mysql> pager Default pager wasn't set, using stdout.
Or \n:
mysql> \n PAGER set to stdout…[Read more]