I am using the less command when checking the log. Here are the 3 best ways to use it that you often use.
# 1.When you want to check the file contents by searching with a specific wording
grep The wording file name you want to search| less
# 2.When you want to display without wrapping when one sentence of the log is long
less -S file name
# 3.When you want to display the line number
less -N file name
Key | Description |
---|---|
/ | Search for |
n | Search for |
F | Update if there is an addition at the end |
Recommended Posts