Download presentation
Presentation is loading. Please wait.
Published byKristian Rose Modified over 9 years ago
1
©Brooks/Cole, 2001 Figure 5-14 Job States fg
2
©Brooks/Cole, 2001 백그라운드 / 포그라운드 (Background/Foreground Jobs) - 오랜 시간 작업을 요하며 터미널에서 입력을 받지 않는 작업인 경우 백그라운드 job 으로 수행 - 백그라운드 job 과 포그라운드 job 을 동시에 수행 ( 멀티태스킹 시스템 ) 백그라운드 : 별다른 주의없이 실행되는 프로그램 (sorts, compilations 등 ) 명령의 끝에 앰퍼샌드 (&) 를 붙임 포그라운드 : 사용자가 입력한 명령들
3
©Brooks/Cole, 2001 Foreground and Background Jobs 1. Foreground Jobs 1) Suspending a Foreground Job $ find / -name dante –print > file1 2> Err# suspended ^Z[1]+ 정지 (SIGTSTP) find … $ fg# resume job (foreground) 2) Terminating a Foreground Job $ find / -name dante –print > file1 2> Err # cancel job ^C $
4
©Brooks/Cole, 2001 2. Background Jobs $ find / -name dante –print > file1 2> Err& [1] 13408#PID 1) Suspending, Restarting, and Terminating Background Jobs $ stop %1#suspend $ bg %1#resume(background) $ kill %1#terminating
5
©Brooks/Cole, 2001 2) Moving Between Background and Foreground $ find / -name dante –print > file1 2> Err ^Z#suspend [1] + 정지 (SIGTSTP) find … $ bg# resume job (background) [1] find / -name … $ fg %1# move background job to foreground 3. Multiple Background Jobs # list all jobs running or stopped $ jobs # list all jobs running or stopped
6
©Brooks/Cole, 2001 Process ID Job number : not global Process identifier(PID) : global $ ps $ ps –ef $ kill -9 PID
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.