Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to show all systemd logs.
Linux CLI
journalctl [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-b' shows logs only from the current boot.
Using '-u' requires a service name and filters logs for that service.
Using '-f' follows logs live but does not show all past logs.
✗ Incorrect
The option '--no-pager' shows all logs without paging, displaying the full output at once.
2fill in blank
mediumComplete the command to show logs only for the sshd service.
Linux CLI
journalctl [1] sshd.service Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-b' shows logs from current boot but not filtered by service.
Using '--since' filters by time, not service.
Using '-f' follows logs live but does not filter by service.
✗ Incorrect
The '-u' option filters logs for a specific systemd unit, here 'sshd.service'.
3fill in blank
hardFix the error in the command to follow logs live for the nginx service.
Linux CLI
journalctl -u nginx.service [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--since today' shows logs only from today but does not follow live.
Using '--no-pager' disables paging but does not follow live.
Using '-b' shows logs from current boot but does not follow live.
✗ Incorrect
The '-f' option makes journalctl follow logs live, showing new entries as they appear.
4fill in blank
hardFill both blanks to show logs from the current boot and disable paging.
Linux CLI
journalctl [1] [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-u' filters by service, not boot.
Using '-f' follows logs live, not needed here.
✗ Incorrect
The '-b' option shows logs from the current boot, and '--no-pager' disables paging to show all logs at once.
5fill in blank
hardFill all three blanks to show logs for the cron service since yesterday and follow live.
Linux CLI
journalctl [1] cron.service [2] yesterday [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-b' instead of '--since' does not filter by time.
Using '--no-pager' disables paging but does not follow live.
Forgetting '-f' means logs won't update live.
✗ Incorrect
Use '-u' to filter by cron service, '--since' to specify time from yesterday, and '-f' to follow logs live.