Linux Set Date and Time From a Command Prompt

12004

I don’t have GUI installed and I am login over ssh session. How can I set date under Linux operating systems? How can I set the system date and time from the command prompt (bash shell)? With systemd based system you need to use the timedatectl command to set or view the current date and time. Most modern distro such as RHEL/CentOS v.7.x+, Fedora Linux, Debian, Ubuntu, Arch Linux and other systemd based system need to the timedatectl utility.

Read more…