1 min read

Job Control on \*NIX systems

If you are not a UNIX user/not a geek, please turn away right now.

Every year, I either chance upon something new, or remind myself of something interesting that I’ve forgotten. This is the latter case. On a *NIX shell, you can push a foreground process to background (obviously without terminating it):

$ ./someprocess ... ... ... Ctrl-Z [1]+ Stopped ./someprocess $ bg [1]+ ./someprocess &

To bring the process into foreground:

$ fg < -- last process pushed into bkgnd $ jobs [1] ./someprocess [2] ./someotherprocess $ fg 2

via Job Control on UNIX systems.