how to find what day does dec 1 fall on?
-
$date -day 'Dec 1' +%A
-
$date --date='1 Dec' +%A
-
$date -day '1 Dec'' +%A
-
$date day=1 Dec
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).