nerdexam
GIAC

GSNA · Question #194

What will be the output of the following command? echo $(date %M) > date.txt

Sign in or unlock GSNA to reveal the answer and full explanation for question #194. The question stem and answer options stay visible for context.

Linux/Unix System Auditing

Question

What will be the output of the following command? echo $(date %M) > date.txt

Options

  • AThe current time (Month) will be written in the date.txt file.
  • BIt will create a variable $(date %M).
  • CIt will print a string "date %M".
  • DThe current time (Minutes) will be written in the date.txt file.

Unlock GSNA to see the answer

You've previewed enough free GSNA questions. Unlock GSNA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#bash scripting#date command#command substitution#shell output redirection
Full GSNA Practice