Skip to main content

index

docs/
โ””โ”€โ”€ tutorials/
โ””โ”€โ”€ shell-bash/
โ”œโ”€โ”€ index.mdx
โ”œโ”€โ”€ 01-introduction/
โ”‚ โ”œโ”€โ”€ what-is-a-shell.mdx
โ”‚ โ”œโ”€โ”€ what-is-bash.mdx
โ”‚ โ”œโ”€โ”€ shell-vs-terminal.mdx
โ”‚ โ”œโ”€โ”€ bash-vs-sh.mdx
โ”‚ โ”œโ”€โ”€ command-line-fundamentals.mdx
โ”‚ โ”œโ”€โ”€ command-interpreters.mdx
โ”‚ โ””โ”€โ”€ common-shells.mdx
โ”œโ”€โ”€ 02-environment-setup/
โ”‚ โ”œโ”€โ”€ bash-on-linux.mdx
โ”‚ โ”œโ”€โ”€ bash-on-macos.mdx
โ”‚ โ”œโ”€โ”€ bash-on-windows.mdx
โ”‚ โ”œโ”€โ”€ windows-wsl-setup.mdx
โ”‚ โ”œโ”€โ”€ git-bash-setup.mdx
โ”‚ โ”œโ”€โ”€ terminal-emulators.mdx
โ”‚ โ””โ”€โ”€ verify-bash-installation.mdx
โ”œโ”€โ”€ 03-first-commands/
โ”‚ โ”œโ”€โ”€ your-first-command.mdx
โ”‚ โ”œโ”€โ”€ pwd-and-current-directory.mdx
โ”‚ โ”œโ”€โ”€ ls-and-directory-listing.mdx
โ”‚ โ”œโ”€โ”€ cd-and-navigation.mdx
โ”‚ โ”œโ”€โ”€ clear-and-reset.mdx
โ”‚ โ”œโ”€โ”€ command-history.mdx
โ”‚ โ””โ”€โ”€ command-help-and-man-pages.mdx
โ”œโ”€โ”€ 04-files-and-directories/
โ”‚ โ”œโ”€โ”€ file-paths.mdx
โ”‚ โ”œโ”€โ”€ absolute-vs-relative-paths.mdx
โ”‚ โ”œโ”€โ”€ mkdir-and-directory-creation.mdx
โ”‚ โ”œโ”€โ”€ touch-and-file-creation.mdx
โ”‚ โ”œโ”€โ”€ cp-and-copying-files.mdx
โ”‚ โ”œโ”€โ”€ mv-and-renaming-files.mdx
โ”‚ โ”œโ”€โ”€ rm-and-safe-file-removal.mdx
โ”‚ โ”œโ”€โ”€ find-files-and-directories.mdx
โ”‚ โ”œโ”€โ”€ file-types-and-metadata.mdx
โ”‚ โ””โ”€โ”€ symbolic-and-hard-links.mdx
โ”œโ”€โ”€ 05-text-processing/
โ”‚ โ”œโ”€โ”€ cat-and-file-content.mdx
โ”‚ โ”œโ”€โ”€ less-and-paging.mdx
โ”‚ โ”œโ”€โ”€ head-and-tail.mdx
โ”‚ โ”œโ”€โ”€ grep-and-pattern-search.mdx
โ”‚ โ”œโ”€โ”€ sed-and-stream-editing.mdx
โ”‚ โ”œโ”€โ”€ awk-and-text-processing.mdx
โ”‚ โ”œโ”€โ”€ sort-uniq-and-cut.mdx
โ”‚ โ”œโ”€โ”€ wc-and-text-counting.mdx
โ”‚ โ”œโ”€โ”€ tr-and-character-transformations.mdx
โ”‚ โ””โ”€โ”€ regular-expressions.mdx
โ”œโ”€โ”€ 06-redirection-and-pipelines/
โ”‚ โ”œโ”€โ”€ stdin-stdout-and-stderr.mdx
โ”‚ โ”œโ”€โ”€ output-redirection.mdx
โ”‚ โ”œโ”€โ”€ append-and-overwrite.mdx
โ”‚ โ”œโ”€โ”€ input-redirection.mdx
โ”‚ โ”œโ”€โ”€ pipes-and-command-chaining.mdx
โ”‚ โ”œโ”€โ”€ tee-and-output-duplication.mdx
โ”‚ โ”œโ”€โ”€ file-descriptors.mdx
โ”‚ โ”œโ”€โ”€ command-substitution.mdx
โ”‚ โ””โ”€โ”€ process-substitution.mdx
โ”œโ”€โ”€ 07-shell-expansion-and-quoting/
โ”‚ โ”œโ”€โ”€ quoting-rules.mdx
โ”‚ โ”œโ”€โ”€ variable-expansion.mdx
โ”‚ โ”œโ”€โ”€ command-substitution.mdx
โ”‚ โ”œโ”€โ”€ filename-expansion-globbing.mdx
โ”‚ โ”œโ”€โ”€ brace-expansion.mdx
โ”‚ โ”œโ”€โ”€ tilde-expansion.mdx
โ”‚ โ”œโ”€โ”€ arithmetic-expansion.mdx
โ”‚ โ”œโ”€โ”€ word-splitting.mdx
โ”‚ โ””โ”€โ”€ shell-expansion-order.mdx
โ”œโ”€โ”€ 08-permissions-and-ownership/
โ”‚ โ”œโ”€โ”€ file-permissions.mdx
โ”‚ โ”œโ”€โ”€ chmod-and-permission-modes.mdx
โ”‚ โ”œโ”€โ”€ chown-and-chgrp.mdx
โ”‚ โ”œโ”€โ”€ umask-and-default-permissions.mdx
โ”‚ โ”œโ”€โ”€ executable-scripts.mdx
โ”‚ โ”œโ”€โ”€ sudo-and-privileges.mdx
โ”‚ โ””โ”€โ”€ least-privilege-principle.mdx
โ”œโ”€โ”€ 09-bash-scripting-basics/
โ”‚ โ”œโ”€โ”€ your-first-bash-script.mdx
โ”‚ โ”œโ”€โ”€ shebang-and-interpreters.mdx
โ”‚ โ”œโ”€โ”€ script-permissions.mdx
โ”‚ โ”œโ”€โ”€ comments-and-documentation.mdx
โ”‚ โ”œโ”€โ”€ variables-and-assignment.mdx
โ”‚ โ”œโ”€โ”€ environment-variables.mdx
โ”‚ โ”œโ”€โ”€ read-and-user-input.mdx
โ”‚ โ”œโ”€โ”€ printf-and-formatted-output.mdx
โ”‚ โ””โ”€โ”€ script-arguments.mdx
โ”œโ”€โ”€ 10-variables-and-data/
โ”‚ โ”œโ”€โ”€ local-and-global-variables.mdx
โ”‚ โ”œโ”€โ”€ readonly-and-unset.mdx
โ”‚ โ”œโ”€โ”€ strings-and-manipulation.mdx
โ”‚ โ”œโ”€โ”€ arrays.mdx
โ”‚ โ”œโ”€โ”€ associative-arrays.mdx
โ”‚ โ”œโ”€โ”€ indexed-array-operations.mdx
โ”‚ โ”œโ”€โ”€ parameter-expansion.mdx
โ”‚ โ””โ”€โ”€ environment-and-export.mdx
โ”œโ”€โ”€ 11-conditionals-and-logic/
โ”‚ โ”œโ”€โ”€ exit-status-and-return-codes.mdx
โ”‚ โ”œโ”€โ”€ test-and-conditional-expressions.mdx
โ”‚ โ”œโ”€โ”€ if-elif-and-else.mdx
โ”‚ โ”œโ”€โ”€ case-statements.mdx
โ”‚ โ”œโ”€โ”€ logical-and-or-not.mdx
โ”‚ โ”œโ”€โ”€ string-comparisons.mdx
โ”‚ โ”œโ”€โ”€ numeric-comparisons.mdx
โ”‚ โ””โ”€โ”€ file-test-operators.mdx
โ”œโ”€โ”€ 12-loops-and-iteration/
โ”‚ โ”œโ”€โ”€ for-loops.mdx
โ”‚ โ”œโ”€โ”€ while-loops.mdx
โ”‚ โ”œโ”€โ”€ until-loops.mdx
โ”‚ โ”œโ”€โ”€ loop-over-files.mdx
โ”‚ โ”œโ”€โ”€ loop-over-arrays.mdx
โ”‚ โ”œโ”€โ”€ break-and-continue.mdx
โ”‚ โ”œโ”€โ”€ nested-loops.mdx
โ”‚ โ””โ”€โ”€ safe-line-by-line-reading.mdx
โ”œโ”€โ”€ 13-functions-and-reusability/
โ”‚ โ”œโ”€โ”€ function-fundamentals.mdx
โ”‚ โ”œโ”€โ”€ function-arguments.mdx
โ”‚ โ”œโ”€โ”€ local-variables-and-scope.mdx
โ”‚ โ”œโ”€โ”€ return-status-and-output.mdx
โ”‚ โ”œโ”€โ”€ reusable-shell-libraries.mdx
โ”‚ โ”œโ”€โ”€ recursion-and-limitations.mdx
โ”‚ โ””โ”€โ”€ modular-script-design.mdx
โ”œโ”€โ”€ 14-advanced-bash/
โ”‚ โ”œโ”€โ”€ traps-and-signal-handling.mdx
โ”‚ โ”œโ”€โ”€ strict-mode-and-its-tradeoffs.mdx
โ”‚ โ”œโ”€โ”€ process-substitution.mdx
โ”‚ โ”œโ”€โ”€ here-documents-and-here-strings.mdx
โ”‚ โ”œโ”€โ”€ namerefs-and-indirect-expansion.mdx
โ”‚ โ”œโ”€โ”€ mapfile-and-readarray.mdx
โ”‚ โ”œโ”€โ”€ coprocesses.mdx
โ”‚ โ”œโ”€โ”€ advanced-parameter-expansion.mdx
โ”‚ โ””โ”€โ”€ bash-options-and-shopt.mdx
โ”œโ”€โ”€ 15-processes-and-jobs/
โ”‚ โ”œโ”€โ”€ process-fundamentals.mdx
โ”‚ โ”œโ”€โ”€ ps-and-process-inspection.mdx
โ”‚ โ”œโ”€โ”€ jobs-bg-and-fg.mdx
โ”‚ โ”œโ”€โ”€ signals-and-kill.mdx
โ”‚ โ”œโ”€โ”€ background-processes.mdx
โ”‚ โ”œโ”€โ”€ wait-and-process-synchronization.mdx
โ”‚ โ”œโ”€โ”€ pipelines-and-subshells.mdx
โ”‚ โ”œโ”€โ”€ process-groups-and-sessions.mdx
โ”‚ โ””โ”€โ”€ timeouts-and-cleanup.mdx
โ”œโ”€โ”€ 16-system-administration/
โ”‚ โ”œโ”€โ”€ disk-and-filesystem-usage.mdx
โ”‚ โ”œโ”€โ”€ memory-and-system-information.mdx
โ”‚ โ”œโ”€โ”€ users-groups-and-identity.mdx
โ”‚ โ”œโ”€โ”€ services-and-service-management.mdx
โ”‚ โ”œโ”€โ”€ logs-and-log-analysis.mdx
โ”‚ โ”œโ”€โ”€ networking-commands.mdx
โ”‚ โ”œโ”€โ”€ archives-and-compression.mdx
โ”‚ โ”œโ”€โ”€ package-manager-workflows.mdx
โ”‚ โ””โ”€โ”€ safe-system-maintenance.mdx
โ”œโ”€โ”€ 17-automation-and-scheduling/
โ”‚ โ”œโ”€โ”€ automate-repetitive-tasks.mdx
โ”‚ โ”œโ”€โ”€ cron-job-fundamentals.mdx
โ”‚ โ”œโ”€โ”€ cron-environment-and-logging.mdx
โ”‚ โ”œโ”€โ”€ systemd-timers-overview.mdx
โ”‚ โ”œโ”€โ”€ backups-and-rotation.mdx
โ”‚ โ”œโ”€โ”€ cleanup-and-retention-scripts.mdx
โ”‚ โ”œโ”€โ”€ health-check-scripts.mdx
โ”‚ โ””โ”€โ”€ notifications-and-alerts.mdx
โ”œโ”€โ”€ 18-debugging-and-quality/
โ”‚ โ”œโ”€โ”€ bash-debugging-options.mdx
โ”‚ โ”œโ”€โ”€ xtrace-and-debug-output.mdx
โ”‚ โ”œโ”€โ”€ syntax-checking.mdx
โ”‚ โ”œโ”€โ”€ shellcheck-static-analysis.mdx
โ”‚ โ”œโ”€โ”€ shfmt-and-formatting.mdx
โ”‚ โ”œโ”€โ”€ bats-automated-testing.mdx
โ”‚ โ”œโ”€โ”€ error-handling-patterns.mdx
โ”‚ โ””โ”€โ”€ portable-shell-scripts.mdx
โ”œโ”€โ”€ 19-security-and-best-practices/
โ”‚ โ”œโ”€โ”€ safe-command-construction.mdx
โ”‚ โ”œโ”€โ”€ quoting-and-injection-prevention.mdx
โ”‚ โ”œโ”€โ”€ temporary-files-and-mktemp.mdx
โ”‚ โ”œโ”€โ”€ secrets-and-credential-handling.mdx
โ”‚ โ”œโ”€โ”€ path-and-environment-security.mdx
โ”‚ โ”œโ”€โ”€ safe-deletion-patterns.mdx
โ”‚ โ”œโ”€โ”€ avoid-eval-and-unsafe-input.mdx
โ”‚ โ”œโ”€โ”€ privilege-and-sudo-safety.mdx
โ”‚ โ””โ”€โ”€ production-script-checklist.mdx
โ”œโ”€โ”€ 20-developer-workflows/
โ”‚ โ”œโ”€โ”€ git-and-bash.mdx
โ”‚ โ”œโ”€โ”€ development-environment-setup.mdx
โ”‚ โ”œโ”€โ”€ build-and-test-automation.mdx
โ”‚ โ”œโ”€โ”€ ci-cd-shell-scripts.mdx
โ”‚ โ”œโ”€โ”€ docker-and-shell.mdx
โ”‚ โ”œโ”€โ”€ ssh-and-remote-commands.mdx
โ”‚ โ”œโ”€โ”€ command-line-data-workflows.mdx
โ”‚ โ””โ”€โ”€ environment-bootstrap-scripts.mdx
โ”œโ”€โ”€ 21-projects/
โ”‚ โ”œโ”€โ”€ interactive-cli-menu.mdx
โ”‚ โ”œโ”€โ”€ batch-file-organizer.mdx
โ”‚ โ”œโ”€โ”€ log-analyzer.mdx
โ”‚ โ”œโ”€โ”€ automated-backup-tool.mdx
โ”‚ โ”œโ”€โ”€ system-health-monitor.mdx
โ”‚ โ”œโ”€โ”€ developer-environment-setup.mdx
โ”‚ โ”œโ”€โ”€ bulk-file-renamer.mdx
โ”‚ โ””โ”€โ”€ production-automation-toolkit.mdx
โ”œโ”€โ”€ reference/
โ”‚ โ”œโ”€โ”€ bash-command-cheatsheet.mdx
โ”‚ โ”œโ”€โ”€ shell-expansion-reference.mdx
โ”‚ โ”œโ”€โ”€ bash-operators-reference.mdx
โ”‚ โ”œโ”€โ”€ exit-codes-reference.mdx
โ”‚ โ”œโ”€โ”€ file-permissions-reference.mdx
โ”‚ โ”œโ”€โ”€ environment-variables-reference.mdx
โ”‚ โ”œโ”€โ”€ common-errors-and-solutions.mdx
โ”‚ โ”œโ”€โ”€ bash-vs-posix-reference.mdx
โ”‚ โ”œโ”€โ”€ glossary.mdx
โ”‚ โ””โ”€โ”€ official-resources.mdx
โ””โ”€โ”€ assets/
โ”œโ”€โ”€ images/
โ”œโ”€โ”€ diagrams/
โ””โ”€โ”€ examples/