LINUX : Data no debian




seguir um tutorial de como alterar data no linux(baseado em debian) pelo terminal, espero que gostem:

Verificar a data e hora do sistema

#date

Verificar a data e hora do hardware

#hwclock
ou
#hwclock --show

Alterando data:

# date -s mm/dd/yy
ou
# date --set=mm/dd/yy

Alterando hora:

# date -s hh:mm:ss
ou
# date --set=hh:mm:ss

Ajustar o relógio de hardware para a hora do sistema utilizando o padrão UTC

#hwclock -w -u

Ajustar o relógio do sistema para a hora do hardware utilizando o padrão UTC

#hwclock -s -u

Data e hora:

# date mmddhhmmyyyy

O significado de cada conjunto de caracteres é:

    mm: mês
    dd: dia
    hh: hora
    mm: minuto
    yyyy: ano 

Configurar timezone:
# dpkg-reconfigure tzdata 
# tzconfig

debian:~# 

tzconfig
setar time zone  US/Pacific
Do you want to change that? [n]: 

y

Please enter the number of the geographic area in which you live:

      1) Africa                     7) Australia
      2) America                    8) Europe
      3) US time zones              9) Indian Ocean
      4) Canada time zones          10) Pacific Ocean
      5) Asia                       11) Use System V style time zones
      6) Atlantic Ocean             12) None of the above

Then you will be shown a list of cities which represent the time zone
in which they are located. You should choose a city in your time zone.

Number: 

2

Adak Anchorage Anguilla Antigua Araguaina Aruba Asuncion Atka Barbados
Belem Belize Bogota Boise Buenos_Aires Cancun Caracas Catamarca Cayenne
Cayman Chicago Chihuahua Cordoba Costa_Rica Cuiaba Curacao Dawson
Dawson_Creek Denver Detroit Dominica Edmonton El_Salvador Ensenada
Fort_Wayne Fortaleza Glace_Bay Godthab Goose_Bay Grand_Turk Grenada
Guadeloupe Guatemala Guayaquil Guyana Halifax Havana Indiana/Indianapolis
Indiana/Knox Indiana/Marengo Indiana/Vevay Indianapolis Inuvik Iqaluit
Jamaica Jujuy Juneau Knox_IN La_Paz Lima Los_Angeles Louisville Maceio
Managua Manaus Martinique Mazatlan Mendoza Menominee Mexico_City Miquelon
Montevideo Montreal Montserrat Nassau New_York Nipigon Nome Noronha Panama
Pangnirtung Paramaribo Phoenix Port-au-Prince Port_of_Spain Porto_Acre
Porto_Velho Puerto_Rico Rainy_River Rankin_Inlet Regina Rosario Santiago
Santo_Domingo Sao_Paulo Scoresbysund Shiprock St_Johns St_Kitts St_Lucia
St_Thomas St_Vincent Swift_Current Tegucigalpa Thule Thunder_Bay Tijuana
Tortola Vancouver Virgin Whitehorse Winnipeg Yakutat Yellowknife

Please enter the name of one of these cities or zones
You just need to type enough letters to resolve ambiguities
Press Enter to view all of them again
Name []: 

Los_Angeles
Your default time zone is set to 'America/Los_Angeles'.
Local time is now:      Fri Jul 30 02:26:32 PDT 1999.

Universal Time is now:  Fri Jul 30 09:26:32 UTC 1999.

Close Menu