How To Check Server Time Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To check the server time on Linux, you can use the date command. To display the current date and time, just type:
$ date
To display the current time only, type:
$ date +%T
You can also use the timedatectl command to display the time and timezone information. To display the current timezone, type:
$ timedatectl
You can also manually set the timezone information by typing:
$ timedatectl set-timezone <timezone>
Replace <timezone> with your desired timezone.