查看当前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. 嵌入式&iOS:回调函数(C)与block(OC)传 参/函数 对比

    C的回调函数: callBack.h 1).声明一个doSomeThingCount函数,参数为一个(无返回值,1个int参数的)函数. void DSTCount(void(*CallBack)(i ...

  2. (一)Spark简介-Java&Python版Spark

    Spark简介 视频教程: 1.优酷 2.YouTube 简介: Spark是加州大学伯克利分校AMP实验室,开发的通用内存并行计算框架.Spark在2013年6月进入Apache成为孵化项目,8个月 ...

  3. 2-1 Linux 操作系统及常用命令

    根据马哥linux初级视频 2-1.2-2来编辑 1. GUI与CLI GUI: Graphic User Interface CLI: Command Line Interface 注:在Windo ...

  4. 分享一个CQRS/ES架构中基于写文件的EventStore的设计思路

    最近打算用C#实现一个基于文件的EventStore. 什么是EventStore 关于什么是EventStore,如果还不清楚的朋友可以去了解下CQRS/Event Sourcing这种架构,我博客 ...

  5. WPF - 属性系统 (4 of 4)

    依赖项属性的重写 在基于C#的编程中,对属性的重写常常是一种行之有效的解决方案:在基类所提供的属性访问符实现不能满足当前要求的时候,我们就需要重新定义属性的访问符. 但对于依赖项属性而言,属性执行逻辑 ...

  6. 最近做了了解java基础的一些题,整理自己用到的一些函数和了解的一些名词

    [程序1]题目:古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,问每个月的兔子对数为多少? 程序分析: 兔子的规律为数列1,1,2, ...

  7. Enterprise Solution 管理软件开发框架流程实战

    1 定义模块和功能 执行系统功能(SAUTSF),在系统主文件(System Master File SAMF)模块中增加功能SAMFEM,Employee Master. 给有权限的用户组分配功能S ...

  8. ASP.NET MVC5+EF6+EasyUI 后台管理系统(21)-权限管理系统-跑通整个系统

    系列目录 这一节我们来跑通整个系统,验证的流程,通过AOP切入方式,在访问方法之前,执行一个验证机制来判断是否有操作权限(如:增删改等) 原理:通过MVC自带筛选器,在筛选器分解路由的Action和c ...

  9. spring aop

    什么是AOP AOP(Aspect-OrientedProgramming,面向方面编程),它利用一种称为“横切”的技术,剖解开封装的对象内部,并将那些影响了多个类的公共行为封装到一个可重用模块,并将 ...

  10. Java Map hashCode深究

    [Java心得总结七]Java容器下——Map 在自己总结的这篇文章中有提到hashCode,但是没有细究,今天细究整理一下hashCode相关问题 1.hashCode与equals 首先我们都知道 ...