• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (deprecated)
You are here: Home / Archives for xargs

xargs

xargs: warning: options –max-args and –replace/-I/-i are mutually exclusive, ignoring previous –max-args value

Last updated on August 1, 2025 by Sal Ferrarello

This threw me for a loop so I’m writing this down to help others (and likely me in the future). I swear I’ve used “xargs” with both “-I” and “–max-args” in the past but now I’m getting this warning and things are behaving improperly. It turns out there are two version of xargs, (FreeBSD xargs and GNU xargs). FreeBSD xargs is installed on BSD systems (including MacOS) and GNU xargs is found on on Linux systems. This warning (and the incorrect result you also get) indicate you’re running GNU xargs.

Filed Under: Computing, Dev Tips, Solution Tagged With: command line, xargs

Copyright © 2026 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in