diff options
| author | user <user@node5.net> | 2024-03-21 17:55:30 +0100 |
|---|---|---|
| committer | user <user@node5.net> | 2024-03-21 17:55:30 +0100 |
| commit | d9cc22e6466f1d210c13591936a2a3f756c5f8ec (patch) | |
| tree | c3fec46c7819531cf7b171d5a54b3e86c441b50d | |
| parent | 467b5b4089457f897263f718205412b18135462f (diff) | |
commands - add list package, rephrase, eject disk
| -rw-r--r-- | Cheat sheets/Commands.md | 24 |
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 |
