Wednesday, November 17, 2010

Job commands

ps : report processes and pid numbers
jobs : current jobs and job id numbers
ctrl-S : stop screen scrolling
ctrl-Q : resume screen scrolling
ctrl-Z : suspend a job
stop %n : suspend background job n

bg : push the job to background
fg : bring a job to foreground
fg % job-id : foreground by job-id

ctrl-C : kill foreground process
kill -KILL pid#
kill -KILL %job-id


If job is running in foreground hit ctrl-z to suspend, then bg %n to run in background.

No comments:

Post a Comment