Text viewing and editing
1. Text Editing commands
Vi/vim
2. View File Contents command
Command |
Description |
Command format |
Parameters |
Cat |
Continuously output the contents of a file on the screen |
Cat [-option] File name |
-N: Display line numbers together on the screen -B: The line number is displayed on the screen, but the blank line does not count |
More |
After displaying a screen content, you can stop and scroll down. The ENTER key can be flipped one line, Ctrl+f can be full page down, if you need to exit press the Q key. |
More file names |
|
Less |
As with more, the only difference is that you can use PageDown and pageup to make up and down, for convenience. |
Head file name |
|
Head |
By default, the first 10 lines that display the contents of the file |
Head file name |
-N: Specify the number of rows to display |
Tail |
In contrast to head, the next 10 lines of file content are displayed by default |
Tail file name |
-N: Specify the number of rows to display |
Linux Common commands summary (update ... )