Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

share|improve this answer

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

Your Answer

 
discard

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.