Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After I run the command in mysql SHOW FULL PROCESSLIST\G, it displays me a really long list of mysql processes and I'm only able to read the last 10 processes.

Is there any way I could paginate or print to file what it displays?

share|improve this question
up vote 0 down vote accepted

is putting all the what the command writes in your console to a file we called output.txt

YOURCOMMAND >> output.txt

nano is a text editor, you can move with the arrow-keys or page-up page-down

nano output.txt
share|improve this answer

Invoke the mysql command with this switch: --pager=less

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.