Hands-on task
This task is step 5 of the course “Dates and times in the terminal”
Day of the week for a date
Write to /root/weekday.txt the number of the day of the week (1 — Monday … 7 — Sunday) for the date 2026-01-01.
Reference:date
What you'll practise:
- date
- -d flag
- date formatting
- day of the week