X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fjournalctl.xml;h=0e779b952c0813538ce47af48320eccd5339d858;hp=b8b29b4cb5da2e6f74c9dd5193e3fbc61b356a0f;hb=a331b5e6d4724365bad9edeb9420c7e26e7f50da;hpb=77a9e8de6572db6ba5ca49023937b67fc835f356 diff --git a/man/journalctl.xml b/man/journalctl.xml index b8b29b4cb..0e779b952 100644 --- a/man/journalctl.xml +++ b/man/journalctl.xml @@ -327,23 +327,51 @@ - - - - Show data only from - current boot. This will add a match - for _BOOT_ID= for - the current boot ID of the - kernel. + + + + Show messages from the specified + boot ID or from + current boot if no ID + is given. This will add a match for + _BOOT_ID=. + + The argument is a 128 bit ID given in + short or UUID form and optionally followed by + :n which identifies the nth + boot relative to the boot ID given to the left + of :. Supplying a negative + value for n will look for a past boot and a + positive value for a future boot. The boot IDs + are searched for in chronological order. If no + number is provided after :, + -1 is assumed. A value of 0 + is valid and equivalent to omitting + :0. + + Alternatively, the argument may constist + only of :n. In this case, a + positive value will look up the nth boot + starting from the beginning of the jouranl, a + negative value will look up a previous boot + relative to the current boot. :0 + will look for the current boot ID. Thus, + :1 is the first boot found in + the journal, :2 the second + and so on; while :-1 is the + previous boot, :-2 the boot + before that and so on. Omitting a value after + : will look for the previous + boot. - Show kernel messages from - current boot. This implies - and adds the match _TRANSPORT=kernel. + Show only kernel messages. This + implies and adds the match + _TRANSPORT=kernel. @@ -721,6 +749,10 @@ journalctl /dev/sda + Show all kernel logs from last boot: + + journalctl -k -b : +