Online sources for doing specific things in Linux
- fg, bg, disown, nohup
- %1, %2
- Reatach processes
Read article:
Baeldung - Attach a Terminal to a Detached Process in Linux
Conclusions: although TTY may send SIGHUP control singal, the program may choose to ignore it. Some processes are worthier as a service.
TutorialsPoint - Signals and Traps
- Very complete tutorial: Baeldung - Creating User’s Services With systemd
- Good tips for configuring the service: Link
Baeldung - How Do Permissions Apply to Symbolic Links?
Ejemplo de script con getops
Text processing in bash - basedir and dirnme
Bash script to get ASCII values for alphabet
MakeUseOf - How to Create DEB Packages for Debian/Ubuntu
Digital Ocean - How To Set Up and Configure an OpenVPN Server
How to configure xinetd RedHat - TCP Wrappers and xinetd RedHat ES - Archivos de configuración de envolturas TCP
Baelding - Mapping Hostnames with Ports in /etc/hosts
Services can be started manually through the systemd. In Docker we should use the service
command.
Read more
sudo /etc/init.d/apache2 start
Useful when working with secrets such as passwords and tokens. A must not to have passwords hardcoded (even in they are not plaintext, code can be reversed) GitGuardian - How to Handle Secrets in Python
Perfect for logging
Multiline commands
ssh -T $_remote <<'EOL'
now="$(date)"
name="$HOSTNAME"
up="$(uptime)"
echo "Server name is $name"
echo "Server date and time is $now"
echo "Server uptime: $up"
echo "Bye"
EOL