in Linux by
The name of the script is stored in which special parameter?

(a) Dollar 1

(b) Dollar 0

(c) Dollar #

(d) Dollar *

The question was posed to me in my homework.

This interesting question is from Logical Operators and Conditional Execution topic in section Essential Shell Programming of Unix

1 Answer

0 votes
by
The correct option is (b) Dollar 0

The explanation is: There are some special parameters used by the shell. One of which is $0 which stores the name of the program.

Related questions

+1 vote
asked Feb 18, 2021 in Linux by SakshiSharma
+1 vote
asked Feb 18, 2021 in Linux by SakshiSharma
+1 vote
asked Feb 20, 2021 in Linux by SakshiSharma
...