How to know what is running in the background in each terminal

I already explained to you before how to send processes to the background or the background, but how to know the processes that we previously sent to the background?

To know the processes we must install the jobs package and execute this command. That is:

1. We install the package jobs

In distros like Debian, Ubuntu or derivatives it would be already installed by default.

In ArchLinux or derivatives it would be:

sudo pacman -S jobs

2. Then, we run jobs in the terminal:

jobs

It will appear something like this:

command-jobs

In other words, what is running in that terminal appears.

Anyway, I hope it will be of interest to some.

regards


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   rogergm70 said

    Jo with this program came to find a virus with this program.
    Great contribution!

  2.   Gonzalo said

    No jobs appear in Linux Mint repositories: O

    1.    Debianite said

      Already, I can't find it in the Debian repositories either. Just in case I have also searched the Debian website for packages http://packages.debian.org/, and in Ubuntu: https://apps.ubuntu.com/ y http://packages.ubuntu.com/… And I don't see any packages with that exact name… Where is the trick ??. 😀

      1.    KZKG ^ Gaara said

        My mistake, apparently it is already installed by default in Debian or derivatives.

        1.    Gonzalo said

          Truth! it is included, thanks 😀

    2.    KZKG ^ Gaara said

      My mistake, apparently in distros like Debian, Ubuntu or derivatives it is already installed by default.

      Run jobs in the terminal and tell me if it doesn't give you an error.

      1.    John said

        I'm not sure but maybe what needs to be installed is jobservice (and there is also jobs-admin, a GTK + utility)

    3.    patodx said

      It appears to me as xjobs in Debian and at least in my installation, I had to install it ...

  3.   John said

    Why not use ps instead of jobs? It doesn't need to be installed, and kill can be used with the resulting PID. Are there any advantages to using jobs?

    1.    atheyus said

      jobs is for the $ PID you run in the background in the shell, to see the PID you use:

      jobs -l

      It is easier to see them with jobs than with ps since the number on the left, for example 1, is used to put a process in the foreground or background.

      fg 1

      bg 1

      It is also difficult to reach the PID of a PPID, for example with:

      pstree -pn

      regards