I have run a script like this:
script.sh > terminal.txt 2>&1 &
It contains long loops.
how can I trace (which process with what name and what id was created) that script and kill the process to terminate that?
I have run a script like this:
script.sh > terminal.txt 2>&1 &
It contains long loops.
how can I trace (which process with what name and what id was created) that script and kill the process to terminate that?
 
    
    Type fg in the terminal. Then type Ctrl+c.
See: Job Control Commands
 
    
    Though, @hek2mgl 's answer was great help and paved the way to solution, but the actual solution is a bit different:
Type fg in the terminal. 
Then type Ctrl+z.
