xjobs command not found

In this troubleshooting guide we learn how to fix xjobs command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

xjobs: command not found

or when using sudo you get the following error message

sudo: xjobs: command not found

Solutions to xjobs: command not found

How To Fix xjobs: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu xjobs is provided by xjobs package.

xjobs is:

xjobs reads job descriptions line by line and executes them in parallel. It limits the number of parallel executing jobs and starts new jobs when jobs finish. Therefore, it combines the arguments from every input line with the utility and arguments given on the command line. If no utility is given as an argument to xjobs, then the first argument on every job line will be used as utility. To execute utility xjobs searches the directories given in the PATH environment variable and uses the first file found in these directories.

xjobs is most useful on multi-processor/core machines when one needs to execute several time consuming command several that could possibly be run in parallel. With xjobs this can be achieved easily, and it is possible to limit the load of the machine to a useful value. It works similar to xargs, but starts several processes simultaneously and gives only one line of arguments to each utility call.

To fix this problem, we can install more using the command below.

sudo apt-get -y install xjobs

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install xjobs.

sudo apt -y install xjobs

Or if you have aptitude installed you can use the following command.

sudo aptitude install xjobs

Summary

In this tutorial we learn how to fix xjobs command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.