Bash
Aprenda scripting Bash, desde variáveis até scripts robustos e prontos para produção. Loops, arrays, traps, set -euo pipefail e um projeto final de bootstrap de servidor.
12 lições, em ordem
- 120 min
O que é Bash
Shell vs terminalBash vs sh vs zshInteractive shell vs scriptWhere Bash fits in DevOps - 225 min
Shebang e Seu Primeiro Script
Shebang#!/usr/bin/env bashChmod +x./script.sh vs bash script.shExit codes - 325 min
Variáveis e Aspas
Variable assignmentDouble quotes vs single quotes${var} bracesCommand substitution $(...) - 430 min
Condicionais e Testes
If statement[[ ]] testsString testsFile tests -f -d -e&& and ||Case statement - 525 min
Loops
For loopWhile loopUntil loopFor f in *.txt globbingC-style for loopBreak and continue - 625 min
Funções
Function definitionPositional args $1 $@ $#Return for exit codesEcho for outputLocal variables - 725 min
Arrays
Indexed arrays${arr[@]}${#arr[@]} lengthAssociative arrays declare -AIterating arrays - 825 min
Expansão de Strings e Aritmética
${var#prefix}${var%suffix}${var//old/new}$(( arith ))Printf formatting - 925 min
Redirecionamento de IO e Pipes
>>><2>2>&1&>+3 - 1030 min
Tratamento de Erros e Traps
Set -eSet -uSet -o pipefailTrap on EXITTrap on ERRCleanup functions - 1125 min
Depuração e Boas Práticas
Bash -xSet -xShellcheckSafe quotingNever parse ls[[ vs [+1 - 1260 min
Projeto Final: Script de Inicialização do Servidor
Idempotent provisioningInstalling packagesCreating usersSSH key setupSystemd timersLogging+2
Aprenda Bash no seu idioma
Cada lição, quiz e resposta do tutor aparece no seu idioma. O tutor de IA responde no idioma em que você pergunta.
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