1. View the usage of the command

The command instructions
cat Viewing small files
more View large files in split screen

Effect view of the cat command



Description:

  • The cat command combined with redirection can merge multiple files
  • Gedit file editing command, you can view and edit files

Effect diagram of the more command

If the view content is too long to be displayed on one screen, you can run the more command to allocate and display the file content on the terminal.



Operation key Description:

The operation key instructions
The blank space The next screen is displayed
enter The next line is displayed
b The information on the previous screen is displayed
f The next screen is displayed
q exit

2. The use of pipe (|) command

Pipe (|) : the output of a command can through pipes as the input of another command, can be understood as a container and stored in the content of the terminal display.

Pipeline command effect:



Description:

Pipe (|) combined with more command used commonly, mainly allocated to check the terminal display content.

summary

  • To view small files use the cat command
  • To view large files in separate screens, run the more command.
  • Check terminal display content and split screen display, using pipe (|) combined with more orders.

note

If you have any questions or suggestions, please add wechat: 13960699696.