私はubuntuにいますが、dmesgを書くと、エラーメッセージが赤で表示されますが、コンソールでそれらだけを印刷するにはどうすればよいですか?
承認された回答:
--level
を使用します man dmesg
で説明されているオプション :
-l, --level list Restrict output to the given (comma-separated) list of levels. For example: dmesg --level=err,warn will print error and warning messages only. For all supported levels see the --help output.