Linux - How to set or change time in unix, Command to change time
How to set or change time in unix
In Linux or Unix machine you can use the date command to change the time
To set time use the following syntax:
# date +%T -s "10:11:12"
Where,
* 10: Hour (hh)
* 11: Minute (mm)
* 12: Second (ss)
Use %p locale's equivalent of either AM or PM, enter:
# date +%T%p -s "5:00:30AM" # date +%T%p -s "12:20:30PM"
This is how the date command is used to set or change the time in linux.
The topic on Linux - How to set or change time in unix is posted by - Patel
Hope you have enjoyed, Linux - How to set or change time in unixThanks for your time