Intermediate
Linux & Shell Scripting
Q51 / 100
What is the purpose of "xargs"?
Correct! Well done.
Incorrect.
The correct answer is A) It builds and executes command lines from standard input, often used to pass a list of items (e.g. from "find" or "grep") as arguments to another command
A
Correct Answer
It builds and executes command lines from standard input, often used to pass a list of items (e.g. from "find" or "grep") as arguments to another command
Explanation
"xargs" reads items from standard input (often separated by whitespace or newlines) and uses them as arguments to build and run commands, e.g. "find . -name '*.tmp' | xargs rm" deletes all matched files.
Progress
51/100