nerdexam
CompTIA

LX0-104 · Question #48

Which of the following parameters are used for journalctl to limit the time frame of the output? (Choose TWO correct answers.)

The correct answer is B. --since= C. --until=. The journalctl command uses the --since= and --until= parameters to filter log entries and limit the output to a specific time frame. These options allow users to view logs from a starting point up to an end point.

Essential System Services

Question

Which of the following parameters are used for journalctl to limit the time frame of the output? (Choose TWO correct answers.)

Options

  • A--from=
  • B--since=
  • C--until=
  • D--upto=
  • E--date=

How the community answered

(39 responses)
  • A
    3% (1)
  • B
    90% (35)
  • D
    3% (1)
  • E
    5% (2)

Why each option

The `journalctl` command uses the `--since=` and `--until=` parameters to filter log entries and limit the output to a specific time frame. These options allow users to view logs from a starting point up to an end point.

A--from=

`--from=` is not a standard `journalctl` parameter for specifying a start time. The correct parameter is `--since=`.

B--since=Correct

The `--since=` parameter in `journalctl` is used to display log entries that are newer than or equal to the specified date and time. This defines the start of the time frame.

C--until=Correct

The `--until=` parameter in `journalctl` is used to display log entries that are older than or equal to the specified date and time. This defines the end of the time frame.

D--upto=

`--upto=` is not a standard `journalctl` parameter for specifying an end time. The correct parameter is `--until=`.

E--date=

`--date=` is not a standard `journalctl` parameter for limiting the time frame. It might be confused with date formatting in some other commands, but not for time frame filtering in `journalctl`.

Concept tested: journalctl time filtering

Source: https://www.freedesktop.org/software/systemd/man/journalctl.html

Topics

#journalctl#systemd journal#log filtering

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice