
{Updated} When you exit a login Bash session/shell, you can run commands on macOS/Linux/Unix. Useful to remove bash/mysql history or run backup job so that files are backed up as soon as you exit a login shell.
The post How To Run Commands When You Log Out Using ~/.bash_logout appeared first on nixCraft.