We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tail and grep
具体命令:`tail -f /var/log/nginx/access.log | grep --line-buffered 'ebooks'
命令解析:上面的命令中,tail -f 实时输出日志文件的最新内容,然后用 grep --line-buffered 开启 grep 的 line buffering mode,这样就可以对实时输出的内容用 grep 进行过滤了。
tail -f
grep --line-buffered
grep
line buffering mode
The text was updated successfully, but these errors were encountered:
No branches or pull requests
解决过程
tail and grep
具体命令:`tail -f /var/log/nginx/access.log | grep --line-buffered 'ebooks'
命令解析:上面的命令中,
tail -f
实时输出日志文件的最新内容,然后用grep --line-buffered
开启grep
的line buffering mode
,这样就可以对实时输出的内容用grep
进行过滤了。The text was updated successfully, but these errors were encountered: