What does the following command do? [code] $ kill %2 [/code]

Việt Quân

New member
What does the following command do?
Code:
$ kill %2
A. kills job number 2
B. kills the second background job
C. invalid command
D. kill all foreground & background jobs
 
Answer: b
Explanation: We can use the identifiers like job number, job name or a string of arguments with kill command to terminate a job. Thus kill %2 will kill the second background job.
 

Tìm kiếm

Back
Top