Home  >  Article  >  Operation and Maintenance  >  What to do if the terminal content is not fully displayed under centos

What to do if the terminal content is not fully displayed under centos

王林
王林Original
2020-03-31 09:48:367258browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn