linuxlab.io
Tutorials▾
  • Linux & networking
    File system, processes, TCP/IP, BGP and OSPF
    →
  • Terraform & IaC
    HCL, state, plan/apply on a LocalStack sandbox
    →
  • Git & GitHub
    Object model, plumbing, branching, GitHub Actions
    →
All tutorials →
PricingAboutSign inCreate account
/
  • Introduction
  • Lessons
  • How it works
  • Simulator
  • Knowledge base
  • Interview prep
Lessons
Footer
linuxlab-TutorialsPricingAboutPrivacy & cookies
Copyright © 2026 LinuxLab. All rights reserved.

← из прошлого урока

You have find/grep/awk/sort pipelines in hand. When such a chain repeats for the third time, it is time to put it in a file. Next come bash scripts: shebang, variables, arguments, set -euo pipefail.

← к прошлому уроку

Базовый

Shell scripts: automation with bash

15 мин · урок входит в курс «Базовый»

When the same commands repeat for the third time, it is time to write a script. A script is just a text file with the execute bit (file-permissions +x) and a shebang on the first line. When the kernel sees such a file, it starts the named interpreter as a new process-and-pid and feeds it the rest of the lines.

This lesson covers the skeleton that travels from script to script: shebang, variables, arguments, guard options, conditions, a loop over the lines of a file. The overview article with all the idioms is bash-scripting.

Урок закрыт

Чтобы запустить sandbox и пройти этот урок целиком, нужен соответствующий курс. Внутри - ещё много практических уроков того же уровня и сквозной прогресс.

Купить курсВойти← Все уроки

дальше →

The base part is finished: you can read files, manage processes, and write shell scripts. Next the tutorial switches sharply to a new topic: networking. The pace picks up here, but the sandbox and the checks are the same.

Открыть превью: Networking live: interfaces, addresses, socketsв курсе «Средний» - /pricing
Footer
linuxlab-
Copyright © 2026 LinuxLab. All rights reserved.
Tutorials
Pricing
About
Privacy & cookies