Linux.com: CLI Magic: Running Multiple Jobs with xjobs

Written By
Web Webster
Web Webster
Oct 10, 2006

“Ever feel like you’re not getting the most out of your
multiprocessor machine? The xjobs utility allows you to schedule
several processes to run simultaneously to make the most of your
system’s resources.

“Xjobs takes a list of arguments from standard input and passes
them to a utility, or takes a list of commands from a script, and
then runs the jobs in parallel. If you have a multiprocessor
machine, xjobs will automatically run one job per processor by
default. For instance, on a dual-CPU machine, if you run ls -1 *gz
| xjobs gunzip, xjobs will gunzip two files at a time by default.
If you run the same command on a quad-CPU machine, it will gunzip
four files at a time by default, until it runs out of files to
process…”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.