ufw (Uncomplicated FireWall) commands are complicated, but there is a cheat sheet here
How to resize an encrypted macOS volume
Oneliners for different encodings without leaving the shell:
How to run Magic SysRq on a Lenovo ThinkPad that does not have the SysRq key
Restoring an old post from an old blog about using traps and signals in bash.