bash
TL;DR#
- How to lock a account:
usermod -L user
(unlock it with-U
)
Nützliche Kommandos#
+set -o vi
: vim-like movement in der aktivierenCTRL+R
: Suche in der History. Mit<ESC>
beenden.find . -type f | entr -r go run ./cmd/web
: Führt Kommando erneut aus sobald sich ein Datei in einem Unterordner ändert.
Colors and Effects in Terminal#
if-else#
If you want to test a string, you can use
-n
to test if var is not empty-z
to test if var is empty