terminal.cab

All commands

journalctl

Topic: System and services

Program: journalctl

Shows the entries of the system journal.

Package: log

Usage

journalctl [OPTION]...

Description

Show the entries of the system journal, oldest first. Without permission to read the whole journal only your own entries. Filters work together: -u UNIT, -p PRIORITY (or FROM..TO), -k (kernel), -b [N] (boot), -S/--since and -U/--until TIME. -n [N] shows the last N (10), -r the newest first, -q no notice, -e starts at the end, --no-pager, --list-boots.

Options in the simulator

67 more options of the real program, not in the simulator yet
  • --system not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --user not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -M, --machine needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -m, --merge not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -D, --directory needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -i, --file needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --root needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --image needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --image-policy needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --namespace needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -S, --since needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -U, --until needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -c, --cursor needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --after-cursor needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --cursor-file needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -b, --boot value optional not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -u, --unit needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --user-unit needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --invocation needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -I not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -t, --identifier needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -T, --exclude-identifier needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -p, --priority needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --facility needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -g, --grep needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --case-sensitive value optional not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -k, --dmesg not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -o, --output needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --output-fields needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -n, --lines value optional not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -r, --reverse not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --show-cursor not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --utc not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -x, --catalog not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --no-hostname not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --no-full not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -a, --all not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -f, --follow not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --no-tail not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --truncate-newline not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -q, --quiet not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --no-pager not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -e, --pager-end not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --interval needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --verify-key needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --force not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --version not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -N, --fields not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • -F, --field needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --list-boots not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --list-invocations not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --list-namespaces not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --disk-usage not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --vacuum-size needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --vacuum-files needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --vacuum-time needs a value not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --verify not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --sync not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --relinquish-var not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --smart-relinquish-var not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --flush not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --rotate not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --header not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --list-catalog not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --dump-catalog not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --update-catalog not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

  • --setup-keys not in the simulator yet

    The option exists on a real system; for journalctl the simulator knows -u, -p, -n, -k, -b, -S, -U, -r, -q, -e, --no-pager and --list-boots.

Examples

From the lesson Who eats the memory
journalctl -k -p err --no-pager
Oct 17 03:12:07 web-01 kernel: Out of memory: Killed process 4711 (python3) total-vm:7864320kB, anon-rss:6291456kB, file-rss:1024kB, shmem-rss:0kB, UID:998 pgtables:13000kB oom_score_adj:0

Try it in the terminal

From the lesson Schedules, logs and packages
journalctl -u cron -n 6
Oct 17 09:15:01 web-01 CRON[7378]: pam_unix(cron:session): session opened for user lerner(uid=1000) by lerner(uid=0)
Oct 17 09:15:01 web-01 CRON[7379]: (lerner) CMD (/home/lerner/bin/check-disk.sh)
Oct 17 09:15:01 web-01 CRON[7378]: pam_unix(cron:session): session closed for user lerner
Oct 17 09:17:01 web-01 CRON[7385]: pam_unix(cron:session): session opened for user root(uid=0) by root(uid=0)
Oct 17 09:17:01 web-01 CRON[7386]: (root) CMD (cd / && run-parts --report /etc/cron.hourly)
Oct 17 09:17:01 web-01 CRON[7385]: pam_unix(cron:session): session closed for user root

Try it in the terminal

Where you learn it

Lessons

All commands