1.

Which one of the following command is used for killing the last background job?(a) kill $(b) kill $$(c) kill $!(d) kill !I got this question in examination.My question is from Process Handling Commands in section The Process of Unix

Answer»

The correct choice is (c) kill $!

Explanation: For most SHELLS, the system variable $! Stores the PID of the last BACKGROUND job. So we can kill any PROCESS by USING kill COMMAND. The PID of the job can be seen when & is affixed to a command. For example,



Discussion

No Comment Found

Related InterviewSolutions