0

How To change the Date and Time on CentOS 7.6 Via Command Line

Hello,I just wanna know the command to change the date and time on my centos machine using commands.

Thanks In Advance.

CentOS timestamp Add a comment
caden
asked Aug 20 2019

Answer

0

I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post.]

Add a comment
qureshi
asked Feb 20 2023
edited Aug 25 2023
Post your Answer
0

I think this really is an insightful post and it is invaluable and knowledgeable. therefore, I want to many thanks for the efforts you have produced in writing this article.

Add a comment
muhammadali
asked Feb 20 2023
edited Aug 25 2023
Post your Answer
0

nice bLog! its interesting. thank you for sharing...

Add a comment
qureshi
asked Apr 28 2023
edited Aug 25 2023
Post your Answer
0

To change the date and time on centos machine via command line, try running this command.

timedatectl set-time "13:25:00" --------> to Change time Alone
timedatectl set-time "YYYY-MM-SS" ----------> To Change Date only.

To set both the date and time permanently in linux,then this is the command to run

timedatectl set-time "YYYY-MM-SS HH-MM-SS"

Add a comment
linuxhelp
asked Aug 20 2019
Post your Answer