Professional Documents
Culture Documents
(https://srv.carbonads.net/ads/click
/x/GTND42JEFTADVK7ECTBLYKQNCTAD5K3ICV7I6Z3JCYYDE2JUCVYI623KC67IKK7NCTBIL27NCWYDPK
Be productive with React.js, today's most popular framework with the Frontend Masters React Path. Start now!
(https://srv.carbonads.net/ads/click
/x/GTND42JEFTADVK7ECTBLYKQNCTAD5K3ICV7I6Z3JCYYDE2JUCVYI623KC67IKK7NCTBIL27NCWYDPK7ICVADVKQLHEYIKK3YFTYI4KJE
ads via Carbon (http://carbonads.net/?utm_source=garronme&utm_medium=ad_via_link&utm_campaign=in_unit&
utm_term=carbon)
To have the correct time and date in Linux is very important, a lot of things depends on it. It does not matter if
you are using Linux to power your personal computer or you have a Linux server. The server and system
clock needs to be on time.
1 Set
of 4time and date from the command line 24/12/2020 10:03
Setdate
Time,
-sDate
"19 Timezone in Linux from Comma...
APR 2012 11:14:00" https://www.garron.me/en/linux/set-time-date-t...
date
The hardware clock is the clock that runs in you PC hardware even if you disconnect it from the main power
supply. This is because it has a lithium battery in the modern computers and another type of battery in the old
ones.
hwclock --show
date
cp /usr/share/zoneinfo/America/La_Paz /etc/localtime
2 of 4 24/12/2020 10:03
Choose
Set Time,the right
Date timezone
Timezone in for you.from Comma...
Linux https://www.garron.me/en/linux/set-time-date-t...
To have your system to automatically adjust time we need to install ntp . Get it from your repository. Once
installed you can configure it this way:
# With the default settings below, ntpd will only synchronize your clock.
#
# For details, see:
# - the ntp.conf man page
# - http://support.ntp.org/bin/view/Support/GettingStarted
# - https://wiki.archlinux.org/index.php/Network_Time_Protocol_daemon
# NOTE: If you run dhcpcd and have lines like 'restrict' and 'fudge' appearing
# here, be sure to add '-Y -N' to the dhcpcd_ethX variables in /etc/conf.d/net
Be sure to start the daemon, and to make it start automatically when the system boots.
On Arch Linux is: /etc/rc.d/ntpd start on Debian and derivatives /etc/init.d/ntpd start
You can update the clock manually, without the need of the daemon with ntpdate
ntpdate 129.6.15.28
19 Apr 15:45:23 ntpdate[10948]: step time server 129.6.15.28 offset -45.697084 sec
If you are using Gnome right click on the clock and select adjust, or go to: System > Administration > Time
and Date (You may be asked for root password)
3 of 4 24/12/2020 10:03
permalink (https://www.garron.me/en/linux/set-time-date-timezone-ntp-linux-shell-gnome-command-line.html)
Buy me a coffee(https://www.buymeacoffee.com/ggarron)
Contact (/en/contact.html)
All rights reserved. Hosted at Linode (https://www.linode.com
/?r=74775de9c0e7b94b692de902874cacf3aa5777bf)
Design by: Guillermo Garron
4 of 4 24/12/2020 10:03