Multiple choice technology operating systems

how to find what day does dec 1 fall on?

  1. $date -day 'Dec 1' +%A
  2. $date --date='1 Dec' +%A
  3. $date -day '1 Dec'' +%A
  4. $date day=1 Dec
Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The correct date command syntax is 'date --date='1 Dec' +%A' which uses the --date flag to specify a custom date and +%A format specifier to output the full weekday name. The other options use incorrect flags (-day doesn't exist) or malformed syntax (day= is not valid).