Various options on date command
Sep 29, 2021
What does the date command do in Linux?
date command is used to display the system date and time. date command is also used to set the date and time of the system. By default, the date command displays the date in the time zone on which Unix/Linux operating system is configured. You must be the super-user (root) to change the date and time.
Command: date
Command: date -u
Command: date -d”next sunday”
Command: date +%d/%m/y/%t/%H:%M:%S
Command: date -d “1 year”
Command: date +%d/%m/%Y
Command: date +%H:%M:%S