-
Notifications
You must be signed in to change notification settings - Fork 1
/
journalctl.txt
52 lines (38 loc) · 1.38 KB
/
journalctl.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Content-Type: text/x-zim-wiki
Wiki-Format: zim 0.4
Creation-Date: 2016-12-04T17:31:19+01:00
====== journalctl ======
Created søndag 04 december 2016
**The Journalctl is Arch's logging journal. **
===== Usage =====
**# A few ways to invoke the Journal**
== Select boot ==
**# You can select which boot you've like to see information from. **
$ journalct -b
**# **//-b//** is the same as **//-b -0//
**# To show from previous boot, use **//-b -1//
**# And the second previous, **//-b -2//
**# etc etc.**
== Show end of the Jourmal ==
**# Use **//-x//** to view the latest entries in the journal**
$ journalctl -xb
== Display since .. minutes ==
**# Ex to display all messages within the last 20 minutes**
$ journalctl --since "20 min ago"
== Follow new messages ==
**# To follow the journal for new entries**
$ journalctl -f
===== Tips and Tricks =====
**# Some random Tips and Tricks**
== Wordwrap the output of journalctl ==
**# By default, journalctl truncates the text (off the terminal display) **
**#** **You can instead make it wordwrap the output**
$ SYSTEMD_LESS=FRSXMK journalctl
== Reduce log size ==
**# We don't want our log to take 5% disc-space. **
**#** **Edit **///etc/systemd/journald.conf//**, uncomment and set the **//SystemMaxUse//
{{{code: lang="texinfo" linenumbers="True"
SystemMaxUse=50M
}}}
**# Then reduce the current journal to 50M**
$ journalctl --vacuum-size=50M