Multiple choice technology operating systems

If the argument list is omitted from a for command, where does it take its values from?

  1. The $* shell variable
  2. The $@ shell variable
  3. Redirected input

  4. Redirected output

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In shell scripting, if the argument list is omitted from a for loop, it defaults to iterating over the positional parameters, which is represented by the $@ variable.