查看当前ubuntu系统时区

date -R

Fri,  Dec  :: +

显示的是东八区时间及北京时间

然后输入tzselect 按照提示修改对应时区 本例子修改为美国中部时间 西六区

~$ tzselect
Please identify a location so that time zone rules can be set correctly.
Please select a continent, ocean, "coord", or "TZ".
) Africa
) Americas
) Antarctica
) Arctic Ocean
) Asia
) Atlantic Ocean
) Australia
) Europe
) Indian Ocean
) Pacific Ocean
) coord - I want to use geographical coordinates.
) TZ - I want to specify the time zone using the Posix TZ format.
#?
Please select a country whose clocks agree with yours.
) Anguilla ) Haiti
) Antigua & Barbuda ) Honduras
) Argentina ) Jamaica
) Aruba ) Martinique
) Bahamas ) Mexico
) Barbados ) Montserrat
) Belize ) Nicaragua
) Bolivia ) Panama
) Brazil ) Paraguay
) Canada ) Peru
) Caribbean Netherlands ) Puerto Rico
) Cayman Islands ) St Barthelemy
) Chile ) St Kitts & Nevis
) Colombia ) St Lucia
) Costa Rica ) St Maarten (Dutch part)
) Cuba ) St Martin (French part)
) Curacao ) St Pierre & Miquelon
) Dominica ) St Vincent
) Dominican Republic ) Suriname
) Ecuador ) Trinidad & Tobago
) El Salvador ) Turks & Caicos Is
) French Guiana ) United States
) Greenland ) Uruguay
) Grenada ) Venezuela
) Guadeloupe ) Virgin Islands (UK)
) Guatemala ) Virgin Islands (US)
) Guyana
#?
Please select one of the following time zone regions.
) Newfoundland Time, including SE Labrador
) Atlantic Time - Nova Scotia (peninsula), PEI
) Atlantic Time - Nova Scotia (Cape Breton)
) Atlantic Time - New Brunswick
) Atlantic Time - Labrador - most locations
) Atlantic Standard Time - Quebec - Lower North Shore
) Eastern Time - Ontario & Quebec - most locations
) Eastern Time - Ontario & Quebec - places that did not observe DST -
) Eastern Time - Thunder Bay, Ontario
) Eastern Time - east Nunavut - most locations
) Eastern Time - Pangnirtung, Nunavut
) Central Time - Resolute, Nunavut
) Eastern Standard Time - Atikokan, Ontario and Southampton I, Nunavut
) Central Time - central Nunavut
) Central Time - Manitoba & west Ontario
) Central Time - Rainy River & Fort Frances, Ontario
) Central Standard Time - Saskatchewan - most locations
) Central Standard Time - Saskatchewan - midwest
) Mountain Time - Alberta, east British Columbia & west Saskatchewan
) Mountain Time - west Nunavut
) Mountain Time - central Northwest Territories
) Mountain Time - west Northwest Territories
) Mountain Standard Time - Creston, British Columbia
) Mountain Standard Time - Dawson Creek & Fort Saint John, British Columbia
) Mountain Standard Time - Fort Nelson, British Columbia
) Pacific Time - west British Columbia
) Pacific Time - south Yukon
) Pacific Time - north Yukon
#? The following information has been given: Canada
Central Standard Time - Saskatchewan - most locations Therefore TZ='America/Regina' will be used.
Local time is now: Fri Dec :: CST .
Universal Time is now: Fri Dec :: UTC .
Is the above information OK?
) Yes
) No
#? You can make this change permanent for yourself by appending the line
TZ='America/Regina'; export TZ
to the file '.profile' in your home directory; then log out and log in again. Here is that TZ value again, this time on standard output so that you
can use the /usr/bin/tzselect command in shell scripts:
America/Regina
mag-sit@mag-sit:~$ sudo cp /usr/share/zoneinfo/America/Regina /etc/localtime
[sudo] password for mag-sit:
mag-sit@mag-sit:~$ date
Fri Dec :: CST
mag-sit@mag-sit:~$ date -R
Fri, Dec :: -

ubuntu设置时区为美国中部时间西六区的更多相关文章

  1. CentOS 7 设置时区、日期和时间

    CentOS 7 设置时区.日期和时间 changhr2013关注 2019.04.19 01:33:09字数 307阅读 139 在 CentOS 7 中,引入了一个叫 timedatectl 的设 ...

  2. linux设置时区和自动同步时间

    1.设置时区 编辑 /etc/sysconfig/clock 修改 ZONE="Asia/Shanghai" 然后  cp  /usr/share/zoneinfo/Asia/Sh ...

  3. [Linux]Ubuntu设置时区和更新时间

    Ubuntu 下执行 date -R 查看现在时区 执行 tzselect查看时区,注意这个命令只能查询不能真正的修改时区 执行下面命令,复制文件到 /etc/可修改时区 sudo cp /usr/s ...

  4. 时区 : America/Mexico_City 中文:美国中部时间(墨西哥城) 的夏令时

    方法: (参数为: TimeZone timeZone = TimeZone.getTimeZone("America/Mexico_City"); private static ...

  5. 美国cst时间和夏令时

    美国6 PM CST相当于北京时间几点? 换算北京时间是:8:00,上午8点,日期是第二天.(换算公式:18点+14小时=第二天8点) 6 PM CST:6:00 PM Central Standar ...

  6. ubuntu server设置时区和更新时间

    ubuntu server设置时区和更新时间 今天测试时,发现时间不对,查了一下时区: data -R    结果时区是:+0000 我需要的是东八区,这儿显示不是,所以需要设置一个时区   一.运行 ...

  7. ubuntu设置系统时间与网络时间同步

    ubuntu设置系统时间与网络时间同步   Linux的时间分为System Clock(系统时间)和Real Time Clock (硬件时间,简称RTC).   系统时间:指当前Linux Ker ...

  8. centos7 设置时区和时间

    1.设置时区(同步时间前先设置) timedatectl set-timezone Asia/Shanghai 2.安装组件 yum -y install ntp systemctl enable n ...

  9. Linux 同步时间 设置时区

    简化版 同步时间 #直接用域名同步中国上海时间 ntpdate -u ntp.api.bz # hwclock --hctosys 或者 # clock --hctosys hc代表硬件时间,sys代 ...

随机推荐

  1. maven打包插件:appassembler

    1.打包成bat 打包命令:mvn clean package appassembler:assemble <plugin> <groupId>org.codehaus.moj ...

  2. join Linq

    List<Publisher> Publishers = new List<Publisher>(); Publisher publish1 = new Publisher() ...

  3. Linux学习笔记(一):常用命令

    经过统计Linux中能够识别的命令超过3000种,当然常用的命令就远远没有这么多了,按照我的习惯,我把已经学过的Linux常用命令做了以下几个方面的分割: 1.文件处理命令 2.文件搜索命令 3.帮助 ...

  4. Linux初识

    在这篇文章中你讲看到如下内容: 计算机的组成及功能: Linux发行版之间的区别和联系: Linux发行版的基础目录及功用规定: Linux系统设计的哲学思想: Linux系统上获取命令帮助,及man ...

  5. 使用mapreduce计算环比的实例

    最近做了一个小的mapreduce程序,主要目的是计算环比值最高的前5名,本来打算使用spark计算,可是本人目前spark还只是简单看了下,因此就先改用mapreduce计算了,今天和大家分享下这个 ...

  6. Entity Framework 6 Recipes 2nd Edition(13-6)译 -> 自动编译的LINQ查询

    问题 你想为多次用到的查询提高性能,而且你不想添加额外的编码或配置. 解决方案 假设你有如Figure 13-8 所示的模型 Figure 13-8. A model with an Associat ...

  7. java单例设计模式

    单例模式的特点: 1.单例类只能有一个对象(实例). 2.单例类必须自己创建自己的唯一实例 . 3.单例类必须给所有其他对象提供这一实例. 设置步骤: 1.将对象的应用成员变量用private来修饰. ...

  8. 【Win10 应用开发】自定义应用标题栏

    Win 10 app对窗口标题栏的自定义包括两个层面:一是只定义标题中各部分的颜色,如标题栏上文本的颜色.三个系统按钮(最大化,最小化,关闭)的背景颜色等:另一层是把窗口的可视区域直接扩展到标题栏上, ...

  9. 如何直接在 PC 端获取其它端设备的 UserAgent 信息呢?

    如何直接在 PC 端获取其它端设备的 UserAgent 信息呢 [博主]反骨仔 [原文地址]http://www.cnblogs.com/liqingwen/p/5909615.html 序 希望收 ...

  10. Android属性动画

    这几天看郭神的博客 Android属性动画完全解析(上),初识属性动画的基本用法之后,我自己突然想实现一种动画功能,就是我们在携程网.阿里旅行等等手机APP端买火车票的时候,看到有选择城市,那么就有出 ...