What will the command journalctl -p err do?

Study for the RHEL Linux - Red Hat System Administration Exam. Enhance your knowledge with flashcards and multiple-choice questions, complete with hints and explanations. Prepare for your certification!

The command journalctl -p err is used to filter log entries from the system journal based on their priority level. In this context, -p stands for priority, and err specifies an error priority. The priority levels in the journal range from 0 (emergencies) to 7 (debug messages), with err representing error messages, which corresponds to priority level 3.

When this command is executed, it retrieves and displays all log entries that are categorized as errors or of higher severity. This means it will include log messages with higher priority levels, such as critical errors or emergencies. Therefore, the correct interpretation of the command is that it filters the output to list error log entries (priority level 3) and the more severe log messages that could indicate significant issues with the system.

Other options do not accurately reflect what the command does. For example, filtering for critical errors or logs marked as unusable would either include more severe logs than intended or signify a misunderstanding of the logging levels. Meanwhile, debug messages and warning log entries pertain to different priorities, and using err specifically limits the output to errors and above.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy