# bash-linux > Bash/Linux terminal patterns. Chaining, Process Management, Scripting. - Author: Austen0305 - Repository: Austen0305/AustensCryptoBot - Version: 20260128195520 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-08 - Source: https://github.com/Austen0305/AustensCryptoBot - Web: https://mule.run/skillshub/@@Austen0305/AustensCryptoBot~bash-linux:20260128195520 --- --- name: bash-linux description: Bash/Linux terminal patterns. Chaining, Process Management, Scripting. allowed-tools: Read, Write, Edit, Glob, Grep --- # Bash Linux Patterns > **Command Line Mastery for Local Ops.** --- ## 1. Chaining - `cmd1 && cmd2`: Run cmd2 only if cmd1 succeeds. - `cmd1 || cmd2`: Run cmd2 only if cmd1 FAILS. - `cmd1 ; cmd2`: Run both sequentially irrespective of success. --- ## 2. Process Management - `ps aux | grep python`: Find your running bots. - `kill -9 `: Force kill. - `jobs`: List background jobs. - `fg`: Bring background job to foreground. --- ## 3. Scripting Template For any utility scripts in `scripts/`: ```bash #!/bin/bash set -euo pipefail echo "[INFO] Starting..." # Check env if [ ! -f .env ]; then echo "[ERROR] Key file missing!" exit 1 fi # Do work python main.py ``` --- ## 4. Permissions - `chmod +x script.sh`: Make it executable.