Categories
HOW TO Linux Unix

Unix set date and time command

To set date and time use date command with -s parameter

[sourcecode lang=”bash”]
date -s "02/13/2013 17:52:04"
[/sourcecode]

To list the date and time of the server use date command without parameters

[sourcecode lang=”bash”]
date
[/sourcecode]

Did my HOW TO help you? Leave a reply.