srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
Diffstat (limited to 'linux')
-rw-r--r--linux/linux-troubleshoot.md27
1 files changed, 21 insertions, 6 deletions
diff --git a/linux/linux-troubleshoot.md b/linux/linux-troubleshoot.md
index 5538cc3..21a764f 100644
--- a/linux/linux-troubleshoot.md
+++ b/linux/linux-troubleshoot.md
@@ -11,16 +11,31 @@
- Can show and modify kernal routing tables (+/- ARP cache entries)
- - -
#### Reload a program from tty if gui becomes unresponsive
- `$ DISPLAY=:<n> <name of program>`
+```bash
+$ DISPLAY=:<n> <name of program>
+```
Example:
``` bash
- `$ DISPLAY=:0 xterm &`
- `$ DISPLAY=:0 sxhkd &`
+$ DISPLAY=:0 xterm &
+$ DISPLAY=:0 sxhkd &
```
- - -
#### Fix pacman keyring errors
-``` bash
- `$ pacman-key --init && pacman-key --populate archlinuxarm`
- `$rm /var/lib/pacman/db.lck`
+```bash
+$ pacman-key --init && pacman-key --populate archlinuxarm
+$ rm /var/lib/pacman/db.lck
+```
+- - -
+#### Clean package manager's cache (apt/pacman)
+apt:
+```bash
+$ sudo apt-get clean
+$ sudo apt-get autoclean
+```
+pacman:
+```bash
+$ paccache -r # requires pacman-contrib
+$ sudo pacman -Scc
```
- - -
+