Multiple choice technology operating systems

Consider the following case echo * We know that the output will be the list of all the files in current directory or equivalent to ls output. Which of the following command gives the ouput as * for the above script.

  1. set -t

  2. set -m

  3. set -f

  4. set -l

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

By default, echo * expands the glob * to list all files in the current directory. 'set -f' (or 'set -o noglob') disables glob expansion, causing * to be treated literally. 'set -t', 'set -m', and 'set -l' control other shell options and don't affect globbing.