Otomasi task repetitive. Variables, conditionals, loops, functions di shell.
Bourne Again Shell. Shell default Linux. Lebih dari sekedar CLI: bahasa scripting full-featured. Setiap DevOps wajib bisa baca dan tulis bash. Job interview pasti tanya.
VAR=value tanpa space. Double quote: expansion. Single quote: literal. Backtick atau dollar paren untuk command substitution. Hati-hati: bash quoting menyebalkan.
if [ condition ]; then... fi. Operator: -eq, -ne, -lt, -gt, -f (file ada), -d (directory). && dan || untuk chain. Case statement untuk multiple branch.
for var in list; do... done. while [ condition ]; do... done. break dan continue. Loop file: for f in *.txt. Loop angka: for i in {1..10}.
Backup script harian. Log rotator. System health check. Deploy script. Monitoring custom. Pipe output ke sed, awk untuk text manipulation. Cronjob untuk schedule.