The special shell variable $* is used A. to exit status of ast command executed. B. to process number of the current shell C. to list the positional parameters D. to name the command being executed E. None of the above

to exit status of ast command executed.
to process number of the current shell
to list the positional parameters
to name the command being executed E. None of the above
Join Our Telegram Channel
288 64S117.2 64 74.6 75.5c-23.5 6.3-42 24.9-48.3 48.6-11.4 42.9-11.4 132.3-11.4 132.3s0 89.4 11.4 132.3c6.3 23.7 24.8 41.5 48.3 47.8C117.2 448 288 448 288 448s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zm-317.5 213.5V175.2l142.7 81.2-142.7 81.2z"/> Subscribe on YouTube
id="more-17083">

The correct answer is: C. to list the positional parameters.

The special shell variable $* is used to list the positional parameters. Positional parameters are the arguments that are passed to a command when it is executed. For example, if you execute the command ls, the positional parameters will be ls and the list of files in the current directory.

The other options are incorrect. Option A is incorrect because the exit status of a command is stored in the special shell variable $?. Option B is incorrect because the process number of the current shell is stored in the special shell variable $PPID. Option D is incorrect because the name of the command being executed is stored in the special shell variable $0.

Exit mobile version