Hands-on task
This task is step 11 of the course “Linux: everyday tasks”
Which day of the year is it
A report needs the day-of-year number of the date 2026-03-08 (January 1 is day 1). Write that number to /root/dayofyear.txt.
Reference:date
What you'll practise:
- date
- -d flag
- date formatting
- day of year