Bash
اسکریپتنویسی Bash را از متغیرها تا اسکریپتهای مقاوم و آماده برای محیط عملیاتی یاد بگیرید. حلقهها، آرایهها، trapها، set -euo pipefail و یک پروژه نهایی راهاندازی سرور.
12 درس، به ترتیب
- 120 دقیقه
Bash چیست
Shell vs terminalBash vs sh vs zshInteractive shell vs scriptWhere Bash fits in DevOps - 225 دقیقه
شبنگ (shebang) و اولین اسکریپت شما
Shebang#!/usr/bin/env bashChmod +x./script.sh vs bash script.shExit codes - 325 دقیقه
متغیرها و نقلقولگذاری
Variable assignmentDouble quotes vs single quotes${var} bracesCommand substitution $(...) - 430 دقیقه
شرطها و تستها
If statement[[ ]] testsString testsFile tests -f -d -e&& and ||Case statement - 525 دقیقه
حلقهها
For loopWhile loopUntil loopFor f in *.txt globbingC-style for loopBreak and continue - 625 دقیقه
توابع
Function definitionPositional args $1 $@ $#Return for exit codesEcho for outputLocal variables - 725 دقیقه
آرایهها
Indexed arrays${arr[@]}${#arr[@]} lengthAssociative arrays declare -AIterating arrays - 825 دقیقه
بسط رشته و عملیات حسابی
${var#prefix}${var%suffix}${var//old/new}$(( arith ))Printf formatting - 925 دقیقه
تغییر مسیر ورودی/خروجی و پایپها
>>><2>2>&1&>+3 - 1030 دقیقه
مدیریت خطا و Trapها
Set -eSet -uSet -o pipefailTrap on EXITTrap on ERRCleanup functions - 1125 دقیقه
اشکالزدایی و بهترین شیوهها
Bash -xSet -xShellcheckSafe quotingNever parse ls[[ vs [+1 - 1260 دقیقه
پروژه نهایی: اسکریپت راهاندازی سرور
Idempotent provisioningInstalling packagesCreating usersSSH key setupSystemd timersLogging+2
Bash را به زبان خودت یاد بگیر
هر درس، آزمون و پاسخ مربی به زبان شما نمایش داده میشود. مربی هوشمند به همان زبانی پاسخ میدهد که شما سوال میکنید.
Roles that use Bash
See how hiring teams interview engineers on Bash, in production-like environments.
DevOps Engineer
Hire DevOps engineers who actually ship. Run live or take-home interviews in production-like Linux environments with Docker, Kubernetes, Terraform and CI/CD. See how they debug, automate, and work alongside AI.
See the interviewSite Reliability Engineer (SRE)
Hire SREs who actually run production. Live workspaces with metrics, logs, traces and a service that is starting to misbehave. We record every keystroke.
See the interviewInfrastructure Engineer
Hire infrastructure engineers who design systems your team can rely on. Interview them in real workspaces with Terraform, Ansible, cloud APIs and live failure scenarios.
See the interview