Background (&)

sookyeong·2022년 3월 30일
0

Background에서 작업 실행

$ python3 file.py &

Foreground 작업을 Background로 옮기기

1. 실행

$ python3 file.py

2. 프로세스 일시정지

Ctrl+Z

3. 백그라운드에서 재구동

$ bg

4. 소유권 포기

$ disown -h

Background 작업을 Foreground로 옮기기

1. 현재 Background 작업 상태 확인

$ jobs

2. Foreground로 옮기기

$ fg

Background 작업 확인 (특정 포트)

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

Background 프로세스 종료

$ kill -9 [프로세스ID]
profile
actions speak louder than words

0개의 댓글