SSH Client View server log Common statements are common statements for Linux for file viewing in folders:
1. cd
2, tail
3. grep [Options] Pattern file
-C: Outputs only the count of matching rows.
-I: Case insensitive (only for single-character).
-H: The file name is not displayed when querying multiple files.
-L: Only file names that contain matching characters are output when querying multiple files.
-N: Displays matching lines and line numbers.
-S: does not display error messages that do not exist or have no matching text.
-V: Displays all lines that do not contain matching text.
In the face of huge log files, download and open files separately, extract information from it, it is very laborious. At this point, the grep statement is important. such as tracking a log of a business process code:
The key word is: TotalCount
>grep ' TotalCount ' Info.log
Reverse query:-V
>grep-v ' Searchecif ' Info.log
4, more
5, LS
6.
SSH View server log common statements