🧀 Learn Linux

Master · Let commands collaborate

xargs: Convert input into command parameters

Put in free practice

Syntax

xargs [command [parameters...]]

Examples

printf "a.txt b.txt" | xargs touch

Usage and sandbox support

The teaching subset is split by white space. To actually handle arbitrary file names, find -print0 and xargs -0 are usually used.

Hands-on exercises

Full documentation ↗

Related commands