Examveda
Examveda

Which of the following special shell variables is used to process number of the last background job?

A. $!

B. $#

C. $0

D. $*

E. None of the above

Answer: Option A

Solution(By Examveda Team)

In Unix shell scripting, the $! special variable is used to process the number of the last background job. It holds the process ID (PID) of the last command run in the background.
So, $! is the special shell variable used to process the number of the last background job.

This Question Belongs to Computer Science >> Unix

Join The Discussion

Related Questions on Unix