util-linux: Update to 2.34
[librecmc/librecmc.git] / docs / System_Log.md
index 6d487f5aaca9f17049dcebd62875ba0478fece73..66c686af184dbeabc7a374f8896af8084cce55e1 100644 (file)
@@ -1,6 +1,6 @@
 # System Log
 
-## Viewing the System Log from LuCi
+## Viewing the system log from LuCi
 
 Select the `Status >> System Log` menu entry.
 
@@ -13,11 +13,11 @@ Select the `Status >> System Log` menu entry.
 The `System Log` page in LuCi does not have an interface for filtering
 output. Therefore, you will likely want to use the shell interface.
 
-## Viewing the System Log from the shell
+## Viewing the system log from the shell
 
 Once logged in via SSH, use the `logread` command
 
-```
+```bash
 Usage: logread [options]
 Options:
     -s <path>          Path to ubus socket
@@ -37,8 +37,8 @@ Options:
 
 For example:
 
-```
-root@libreCMC:~# logread | grep 'kern\.warn'
+```bash
+root@libreCMC:~$ logread | grep 'kern\.warn'
 Mon Jan 15 20:22:01 2018 kern.warn kernel: [    0.000000] No valid device tree found, continuing without
 Mon Jan 15 20:22:01 2018 kern.warn kernel: [    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
 Mon Jan 15 20:22:01 2018 kern.warn kernel: [    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
@@ -49,10 +49,10 @@ Mon Jan 15 20:22:01 2018 kern.warn kernel: [    0.752178] m25p80 spi0.0: found m
 One should be able to use `logread -e` instead of `grep`, but it seems
 that not all the same regular expressions work for both:
 
-```
-root@libreCMC:~# logread -e 'kern\.warn' # and other similar variations
+```bash
+root@libreCMC:~$ logread -e 'kern\.warn' # and other similar variations
 (no output)
-````
+```
 
 The system log is contained in a limited size, circular buffer in
 memory. So, if you have some process writing messages periodically,