Linux set date and time from command prompt

Posted by Jiltin     Tags: , , , , 9 November, 2008    4,279 views    (1) Comment

Q. How can I set the system date and time from the command prompt (bash shell)? I don’t have GUI installed and I am login over ssh session. A. Use date command to display the current date and time or set the system date and time over ssh session. This is useful if the Linux server time and/or date is wrong, and you need to set it to new values from the shell prompt. Task: Set new date / time Use the following syntax to set new data and time: date set=”STRING” For example, Read Full Article (Click here)...

Categories : Scripts Unix Tags : , , , ,