What option can you use with journalctl to display log entries in reverse order?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

To display log entries in reverse order using journalctl, the option used is -r. This option instructs journalctl to show the logs starting from the most recent entries down to the older ones. It effectively reverses the default chronological order, which lists entries from oldest to newest.

Using -r is particularly useful when you want to quickly view the latest events and troubleshoot recent issues without having to scroll through a long list of older log entries.

The other options serve different purposes: --reverse is a longer, more descriptive form of the same command, which could cause confusion regarding its validity. The -f option is used to follow the log output in real-time, similar to the tail -f command in traditional logging, while --follow provides the same functionality as -f, allowing you to see new log entries as they are created.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy