change ``bash headers to ``sh

This commit is contained in:
2025-08-22 15:59:04 +02:00
parent 3e049e1687
commit 8eea348112
80 changed files with 773 additions and 555 deletions

View File

@@ -6,38 +6,38 @@ tags: [ "systemd" ]
See a running log of all system messages:
```bash
```sh
journalctl -f
```
Or just one user:
```bash
```sh
journalctl --user -f
```
Or just one unit (`sshd`):
```bash
```sh
journalctl -f -u sshd
```
Find errors since November
```bash
```sh
journalctl --since=2018-11-01 --grep="EXT4-fs error"
```
Limit size to 2G.
```bash
```sh
journalctl --vacuum-size=2G
```
Log the fact that you've installed your own `dnsmasq` on your system to `journalctl`, so that you can notice why your system's broken:
```bash
```sh
logger "Installed new dnsmasq"
sudo journalctl -f
```

View File

@@ -26,7 +26,7 @@ WantedBy=multi-user.target
After making the new service, systemd requires reloading:
```bash
```sh
sudo systemctl daemon-reload
```

View File

@@ -2,33 +2,33 @@
title: "systemd"
tags: [ "systemd" ]
---
```bash
```sh
systemctl list-units
```
```bash
```sh
sudo systemctl status mpd
```
```bash
```sh
sudo systemctl daemon-reload
```
```bash
```sh
sudo systemctl taskd.service start
```
```bash
```sh
sudo systemctl status taskd.service
```
# Startup
```bash
```sh
sudo systemd-analyze
```
```bash
```sh
sudo systemd-analyze blame
```