Wednesday, November 12, 2008

Stopping and starting a process on Unix/Linux

#Stop the process with process it (equivalent of ctrl-z)
kill -s SIGSTOP processid

#Start the process again
kill -s SIGCONT processid

#get the list of back ground jobs
jobs

#get a process on frontend
fg // job id will be listed in output of job

fg is equivalent to fg %1

#bg
bg is equivalent to bg %1