http://blog.naver.com/gaetoy/90013273052
1. Background 처리
shell에서 명령어를 실행할 때 background mode로 실행하려면 명령어 뒤에 & 를 붙인다.
> command &
이미 실행시킨 명령어를 background mode로 전환하려면
프로세스 실행 중에 ^Z (ctrl + Z)를 눌러 잠깐 빠져나온다.
> bg
를 실행하면 background mode로 전환된다. 반대로,
> fg
또는
> fg command
를 실행하면 다시 foreground mode로 전환된다.
2. nohup 명령
nohup 명령은 사용자가 터미널을 단절하거나 모뎀을 끊을 때 종료되는 것을 막아준다.
명령어 사용법은 다음과 같다.
> nohup command [input-file] output-file &