🪄 Bash tricks
Small things that save a search next time.
- Allow a user to access serial (TTY) devices: the
dialoutgroup, for/dev/ttyUSB0and friends - The date command: weekday number, quarter of the year
- Count logged-in users
🛠️ Small scripts on GitHub
| Repository | What it does |
|---|---|
| add_escape_backslash_character_bash_script | Puts a backslash in front of special characters, for strings you pass to another command |
| wordpress_chown_chmod | Sets the owner and the recommended file permissions of a WordPress installation |
| Cloudflare-ufw-rule-creator | Downloads Cloudflare’s IP list and adds it to the UFW firewall |
More one-liners: the Linux CLI cheatsheet and CLI.