Home Background (&)
Post
Cancel

Linux › Background (&)

Background에서 작업 실행

1
$ python3 file.py &


Foreground 작업을 Background로 옮기기

  • 실행
1
$ python3 file.py
  • 프로세스 일시정지
1
Ctrl+Z
  • 백그라운드에서 재구동
1
$ bg
  • 소유권 포기
1
$ disown -h


Background 작업을 Foreground로 옮기기

  • 현재 Background 작업 상태 확인
1
$ jobs
  • Foreground로 옮기기
1
$ fg


Background 작업 확인 (특정 포트)

1
$ netstat -nap | grep [포트번호]


Background 프로세스 종료

1
$ kill -9 [프로세스ID]
❤ Recent Post
❤ How About This
❤ Visitor Counter