Ferramentas de Usuário

Ferramentas de Site

Barra Lateral

Traduções para esta página?:

Debian 8 'Jessie' Server

Debian 7.0 wheezy Server


2.4.1 Date, Time and Time Zone


To adjusts system date and time.


Time Zone

Time zone information is stored in the configuration file /etc/timezone an can be checked using the cat command:

root@server:~# cat /etc/timezone

To adjust the system timezone, use the dpkg-reconfigure tzdata:

root@server:~# dpkg-reconfigure tzdata

Choose the geographical area:

Then the region or city where the system is physically located:

The current default time zone is now:

Current default time zone: 'Europe/Lisbon'
Local time is now:      Mon May  6 18:30:14 WEST 2013.
Universal Time is now:  Mon May  6 17:30:14 UTC 2013.

Date and Time

date can be used to show the actual system date and time:

root@server:~# date
Mon May  6 18:31:38 WEST 2013

date can also be used to quickly adjust system date and time. The syntax is “date MMDDhhmm”:

root@server:~# date 05061834
Mon May  6 18:34:00 WEST 2013
en/wheezy/config/clock/date_time.txt · Última modificação em: 2020-08-02 20:10 (edição externa)

Ferramentas de Página