GO KALI FREE
Search Commands

xargs Linux Command

Builds and executes command lines from standard input (useful with pipes).

What does xargs do?

Builds and executes command lines from standard input (useful with pipes).

Syntax

xargs [options] command

Practical example

find . -name '*.log' | xargs rm

Related Search Commands

tr

Translates, deletes, or squeezes characters from standard input.

find

Searches for files and directories in a directory hierarchy by name, type, size, etc.

cut

Extracts specific columns/fields from each line of a file.

grep

Searches for patterns (text or regex) inside files and prints matching lines.

uniq

Reports or filters out repeated lines in a sorted file.

locate

Quickly finds files by name using a pre-built database (run updatedb to refresh).