Computer Science - Unix - Discussion

Discussion Forum : Unix - Section 3 (Q.No. 11)
11.
Which of the following special shell variables is used to process number of the current shell?
$!
$$
$0
$*
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
2 comments Page 1 of 1.

Narayan Chaudhary said:   1 decade ago
$ resembles total value.

Harshavardhan Kalsait said:   8 years ago
Correct is B option.

A] $!: The process number of the last background command.
B] $$: process number of the current shell.
C] $0: filename of the current script.
D] $*: All the arguments are double quoted. If a script receives two arguments, $* is equivalent to $1 $2.

Post your comments here:

Your comments will be displayed after verification.