Skip to main content
Added more info about each parameter
Source Link
Pablo Bianchi
  • 2.2k
  • 1
  • 29
  • 36

You might also find this useful (non-Windows only):

mysql> pager less -SFX mysql> SELECT * FROM sometable; 

This will pipe the output through the less command line tool which - with these parameters - will give you a tabular output that can be scrolled horizontally and vertically with the cursor keys.

Leave this view by hitting the q key, which will quit the less tool.

From less manual:

  • -S or --chop-long-lines: Causes lines longer than the screen width to be chopped (truncated) rather than wrapped.
  • -F or --quit-if-one-screen: Causes less to automatically exit if the entire file can be displayed on the first screen.
  • -X or --no-init: Disables sending the termcap initialization and deinitialization strings to the terminal.

You might also find this useful (non-Windows only):

mysql> pager less -SFX mysql> SELECT * FROM sometable; 

This will pipe the output through the less command line tool which - with these parameters - will give you a tabular output that can be scrolled horizontally and vertically with the cursor keys.

Leave this view by hitting the q key, which will quit the less tool.

You might also find this useful (non-Windows only):

mysql> pager less -SFX mysql> SELECT * FROM sometable; 

This will pipe the output through the less command line tool which - with these parameters - will give you a tabular output that can be scrolled horizontally and vertically with the cursor keys.

Leave this view by hitting the q key, which will quit the less tool.

From less manual:

  • -S or --chop-long-lines: Causes lines longer than the screen width to be chopped (truncated) rather than wrapped.
  • -F or --quit-if-one-screen: Causes less to automatically exit if the entire file can be displayed on the first screen.
  • -X or --no-init: Disables sending the termcap initialization and deinitialization strings to the terminal.
create code fences
Source Link
abolfazl sadeghi
  • 2.4k
  • 2
  • 15
  • 23

You might also find this useful (non-Windows only):

mysql> pager less -SFX mysql> SELECT * FROM sometable; 

This will pipe the output through the less command line tool which - with these parameters - will give you a tabular output that can be scrolled horizontally and vertically with the cursor keys.

Leave this view by hitting the q key, which will quit the less tool.

You might also find this useful (non-Windows only):

mysql> pager less -SFX mysql> SELECT * FROM sometable; 

This will pipe the output through the less command line tool which - with these parameters - will give you a tabular output that can be scrolled horizontally and vertically with the cursor keys.

Leave this view by hitting the q key, which will quit the less tool.

You might also find this useful (non-Windows only):

mysql> pager less -SFX mysql> SELECT * FROM sometable; 

This will pipe the output through the less command line tool which - with these parameters - will give you a tabular output that can be scrolled horizontally and vertically with the cursor keys.

Leave this view by hitting the q key, which will quit the less tool.

Correct spelling From outut To output
Source Link
tripleee
  • 191.7k
  • 37
  • 318
  • 367

You might also find this useful (non-Windows only):

 mysql> pager less -SFX mysql> SELECT * FROM sometable; 
mysql> pager less -SFX mysql> SELECT * FROM sometable; 

This will pipe the output through the less command line tool which - with these parameters - will give you a tabular output that can be scrolled horizontally and vertically with the cursor keys.

Leave this view by hitting the q key, which will quit the less tool.

You might also find this useful (non-Windows only):

 mysql> pager less -SFX mysql> SELECT * FROM sometable; 

This will pipe the output through the less command line tool which - with these parameters - will give you a tabular output that can be scrolled horizontally and vertically with the cursor keys.

Leave this view by hitting the q key, which will quit the less tool.

You might also find this useful (non-Windows only):

mysql> pager less -SFX mysql> SELECT * FROM sometable; 

This will pipe the output through the less command line tool which - with these parameters - will give you a tabular output that can be scrolled horizontally and vertically with the cursor keys.

Leave this view by hitting the q key, which will quit the less tool.

Source Link
Daniel Schneller
  • 14k
  • 5
  • 46
  • 72
Loading