Linux Set Date
Linux Set Date and Time From Bash Shell:
This is useful if the your Linux Server time and /or date is wrong, and you need to set it now values from the command Prompt. So you need to set date command to display the current date and time or Set the system date/ time over SSH Session.
Let Say your want to set Date and time , 7 SEP 2009 6:34:42
Linux Set and Time:
| # date -s "7 sep 2009 6:34:42" |
OR
Use %p local's equivalent of either AM or PM, use:
| #date +%T%P -s "6:34:42AM" OR #date +%T%P -s "6:34:42AM" |
Advertising