Small bash tricks: serial port access, the date command and counting logged-in users, plus my little scripts on GitHub.

3 notes
Allow a User to Access Serial (TTY) Devices Give a Linux user access to serial devices such as /dev/ttyUSB0 with the dialout group.Nov 14, 2016
Count logged-in users Count logged-in usersJan 1, 2021
Date command in bash Small examples of the date command: weekday number and quarter of the year.Feb 27, 2023
README.md PDF

🪄 Bash tricks

Small things that save a search next time.

🛠️ Small scripts on GitHub

RepositoryWhat it does
add_escape_backslash_character_bash_scriptPuts a backslash in front of special characters, for strings you pass to another command
wordpress_chown_chmodSets the owner and the recommended file permissions of a WordPress installation
Cloudflare-ufw-rule-creatorDownloads Cloudflare’s IP list and adds it to the UFW firewall

More one-liners: the Linux CLI cheatsheet and CLI.