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.

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

The HTTPS handshake is no longer magic. Now to everyday SRE tooling: xargs. Running a command in bulk over a list, the protective -print0, the difference between -I and -n, and parallelism through -P.

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

Средний

xargs: batch processing and parallelism

14 мин · урок входит в курс «Средний»

In the cmd-find and cmd-grep lesson you already saw the idiom find ... -print0 | xargs -0 grep. Here are three xargs features that make a pipeline fast and predictable:

  • -I {}: substitute the file name in the middle of the command
  • -n N: split the input into batches of N arguments
  • -P N: run batches in parallel

Ready-made parallelism, no bash functions and no GNU parallel. An overview of both tools is in xargs-and-find-exec.

Урок закрыт

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

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

дальше →

xargs covers "do this in bulk" in a single line. Next come the details of redirects and file descriptors: process substitution, here-docs, and custom FDs through exec. These are the last small pieces before the services lessons.

Открыть превью: Advanced redirects and file descriptorsв курсе «Средний» - /pricing
Footer
linuxlab-
Copyright © 2026 LinuxLab. All rights reserved.
Tutorials
Pricing
About
Privacy & cookies