Show the current journal tail and continue displaying entries as they arrive.
Which command is appropriate?
journalctl -f follows new entries like tail -f. Stop following with Ctrl+C.
Detailed explanation
journalctl -rIncorrect. -r reverses display order and exits.
Incorrect. -r reverses display order and exits.
journalctl -nIncorrect. -n prints a number of entries but does not follow.
Incorrect. -n prints a number of entries but does not follow.
journalctl -bIncorrect. -b filters by boot only.
Incorrect. -b filters by boot only.
journalctl -fCorrect. -f follows newly arriving entries.
Correct. -f follows newly arriving entries.
Try it yourself
An example you can run in a temporary verification environment.
journalctl --help | grep -E -- '-f|--follow' | head -n 1Expected result
followを示すhelp行Key points
- -f means follow
- -n sets a count
- Ctrl+C stops
Notes
- Environment: systemd journalctl help / 追跡開始なし
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.