summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Cheat sheets/Commands.md24
1 files changed, 23 insertions, 1 deletions
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