check all background process in linux

C++
>jobs
Source

Also in C++: