To check the date and time of any Linux machine, simply type the word date from the command line and press enter on the keyboard.
To change the date and time of a Linux machine, you must first become root user. If you are not already logged in as root, you can use the su command followed by the enter key to "switch user."
Once you enter the correct password, you will be logged in as root. When you are root user, you will notice that there is a # symbol at the end of the command prompt.
Also, if at any point you are unsure as to what user you are logged as, use the whoami command followed by the enter key. The next line will then display your current effective user ID.
Jul 08, 2016