0 votes
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

0 votes
asked Nov 14, 2022 in Operating System by Robin
+1 vote
asked May 11, 2021 in Linux by rajeshsharma
...