Multiple choice technology operating systems

What is the command to diplay the only current month?

  1. date +m

  2. date %m

  3. +%m date

  4. date +%m

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

The date command with +%m format specifier displays only the current month as a two-digit number (01-12). The correct syntax is 'date +%m' where + signals format string and %m is the month specifier. Options A and B are missing the required + prefix, and Option C has the wrong order (format precedes command).