Home > Article > Operation and Maintenance > What to do if the terminal content is not fully displayed under centos
Problem:
There is a large amount of information on the terminal screen, and the content on one or several screens is not fully displayed.
Solution:
1. Add a parameter |more
For example:
ls -l |more
After typing the command in this way, the screen information will stay at the first On the page, after hitting Enter again, one more line is displayed.
(Recommended tutorial: centos tutorial)
But if there is too much information and it is too troublesome to hit Enter, you can use the second method.
2. Write to a file
For example:
ls -l > a.txt
In this way, you can view the information completely by editing a.txt again.
Recommended related video tutorials: linux video tutorial
The above is the detailed content of What to do if the terminal content is not fully displayed under centos. For more information, please follow other related articles on the PHP Chinese website!