From d9cc22e6466f1d210c13591936a2a3f756c5f8ec Mon Sep 17 00:00:00 2001 From: user Date: Thu, 21 Mar 2024 17:55:30 +0100 Subject: commands - add list package, rephrase, eject disk --- Cheat sheets/Commands.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Cheat sheets/Commands.md b/Cheat sheets/Commands.md index 26bec1e..a27bd8e 100644 --- a/Cheat sheets/Commands.md +++ b/Cheat sheets/Commands.md @@ -17,7 +17,18 @@ To load extensions like code blocks: python3 -m markdown -x fenced_code -x codehilite -x tables README.md > /tmp/README.html ``` -## List package file +## List packages +Arch +``` +pacman -Q +``` + +Debian +```bash +dpkg -l +``` + +## List package files Arch ```bash pacman -Ql cowsay @@ -26,4 +37,15 @@ pacman -Ql cowsay Debian ```bash dpkg -L cowsay +``` + +## Check USB eject progress +The OS will lie, and tell you that it's done writing a file, while in reality it's not to flush this cache type: +```bash +sync +``` + +To monitor progress: +```bash +watch -n 0.5 grep 'Dirty' /proc/meminfo ``` \ No newline at end of file -- cgit 1.4.1