Based on what I have learned so far, a terminal has only one session, and a session has one or more process groups, and a process group has one or more processes.
The following image illustrates this:
[![enter image description here][1]][1]
I have two questions:
- How to move a process from one process group to another?
- How to list the processes in each process group?
Edit: I mean how to do these two things from the terminal and not programmatically. [1]: https://i.sstatic.net/SGUDW.gif