Bash
Изучите написание скриптов на Bash - от переменных до надежных, готовых к продакшену скриптов. Циклы, массивы, ловушки, 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 мин
Перенаправление ввода-вывода и конвейеры (pipes)
>>><2>2>&1&>+3 - 1030 мин
Обработка ошибок и ловушки (traps)
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 на своём языке
Каждый урок, тест и ответ наставника показывается на вашем языке. AI-наставник отвечает на том языке, на котором вы пишете.
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