शुरुआती
Bash
Bash स्क्रिप्टिंग सीखें - वेरिएबल्स से लेकर मजबूत, प्रोडक्शन-रेडी स्क्रिप्ट्स तक। लूप्स, एरेज़, ट्रैप्स, set -euo pipefail, और एक सर्वर बूटस्ट्रैप कैपस्टोन।
12 पाठ5.7h हैंड्स-ऑन11 भाषाएँ
मुफ्त सीखना शुरू करेंBash कोर्स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 मिनट
IO रीडायरेक्शन और पाइप्स
>>><2>2>&1&>+3 - 1030 मिनट
एरर हैंडलिंग और ट्रैप्स
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 ट्यूटर उसी भाषा में जवाब देता है जिसमें आप पूछते हैं।
