ainila 发表于 2018-8-23 09:03:07

How to control the jobs with shell?

There are 3 commands to contol jobs.  1. Ctrl + Z
  2. bg & fg
  3. kill
  4. jobs
  For example,
  1. robert@debianlaptop:~$ emacs
  +Stopped               emacs
  2. robert@debianlaptop:~$ fg %1
  emacs
  +Stopped               emacs
  . robert@debianlaptop:~$ bg %1
  + emacs &
  3. robert@debianlaptop:~$ jobs
  +Running               emacs &
  4. robert@debianlaptop:~$ kill %1

页: [1]
查看完整版本: How to control the jobs with shell?