Pause and continue a process on linux

Sometimes you have log out the terminal where you launched your jobs, but you want to pause those jobs since they may have occupied too much computer resources. It's easy to use 'kill' command on linux, if you find out the process id (PID) of your jobs. To find PIDs, use 'ps' or 'top'. For example:

It will show all processes in full-format submitted by user 'tliu4'. For instance, you may get this output:

Then the PID for this job is '27418'. To stop it, pass 'SIGSTOP' to it:

Later, if you want to continue running it, pass 'SIGCONT'. But you won't be able to resume it:

If you want to completely terminate it, pass 'SIGKILL' or 'SIGTERM':

Here is a table for standard signal codes for kill command, copied from 'man 7 signal'.

Signal    Value     Action   Comment ──────────────────────────────────────────────────────────────────────      SIGHUP        1       Term    Hangup detected on controlling terminal or death of controlling process SIGINT       2       Term    Interrupt from keyboard SIGQUIT      3       Core    Quit from keyboard SIGILL       4       Core    Illegal Instruction SIGABRT      6       Core    Abort signal from abort(3) SIGFPE       8       Core    Floating point exception SIGKILL      9       Term    Kill signal SIGSEGV     11       Core    Invalid memory reference SIGPIPE     13       Term    Broken pipe: write to pipe with no                                     readers SIGALRM     14       Term    Timer signal from alarm(2) SIGTERM     15       Term    Termination signal SIGUSR1  30,10,16    Term    User-defined signal 1 SIGUSR2  31,12,17    Term    User-defined signal 2 SIGCHLD  20,17,18    Ign     Child stopped or terminated SIGCONT  19,18,25    Cont    Continue if stopped SIGSTOP  17,19,23    Stop    Stop process SIGTSTP  18,20,24    Stop    Stop typed at tty SIGTTIN  21,21,26    Stop    tty input for background process SIGTTOU  22,22,27    Stop    tty output for background process