查看当前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. 茂名石化BPM应用实践 ——业务协同及服务共享平台建设和应用

    一.茂名石化简介 茂名石化隶属于中国石油化工集团公司,创建于1955年,是国家"一五"期间156项重点项目之一.经过50多年的发展,茂名石化已成为我国生产规模最大的炼油化工企业之一 ...

  2. Express 教程 01 - 入门教程之经典的Hello World

    目录: 前言 一.Express?纳尼?! 二.开始前的准备工作 三.测试安装之经典的Hello World 四.使用express(1)来生成一个应用程序 五.说明 前言: 本篇文章是建立在Node ...

  3. EChart系列:在echart3中使用百度地图扩展之后,如何获取到百度地图对象

    最近做项目想要在百度地图上叠加显示echart的散点图,然后根据地图的缩放等级和区域范围要显示不同的散点图,这中间折腾了好久.功能要求包括: (1)底图使用百度地图: (2)可以在地图上叠加显示ech ...

  4. 【流量劫持】SSLStrip 的未来 —— HTTPS 前端劫持

    前言 在之前介绍的流量劫持文章里,曾提到一种『HTTPS 向下降级』的方案 -- 将页面中的 HTTPS 超链接全都替换成 HTTP 版本,让用户始终以明文的形式进行通信. 看到这,也许大家都会想到一 ...

  5. React单元测试——十八般兵器齐上阵,环境构建篇

    一个完整.优秀的项目往往离不开单元测试的环节,就 github 上的主流前端项目而言,基本都有相应的单元测试模块. 就 React 的项目来说,一套完整的单元测试能在在后续迭代更新中回归错误时候给与警 ...

  6. 【腾讯Bugly干货分享】基于 Webpack & Vue & Vue-Router 的 SPA 初体验

    本文来自于腾讯bugly开发者社区,非经作者同意,请勿转载,原文地址:http://dev.qq.com/topic/57d13a57132ff21c38110186 导语 最近这几年的前端圈子,由于 ...

  7. 线程笔记:Future模式

    线程技术可以让我们的程序同时做多件事情,线程的工作模式有很多,常见的一种模式就是处理网站的并发,今天我来说说线程另一种很常见的模式,这个模式和前端里的ajax类似:浏览器一个主线程执行javascri ...

  8. 记一次jdk升级引起的 Unsupported major.minor version 51.0

    之前jdk 一直是1.6,tomcat 是6.x 版本,, 现在引入的新的jar, 出现 Caused by: java.lang.UnsupportedClassVersionError: org/ ...

  9. [大数据之Yarn]——资源调度浅学

    在hadoop生态越来越完善的背景下,集群多用户租用的场景变得越来越普遍,多用户任务下的资源调度就显得十分关键了.比如,一个公司拥有一个几十个节点的hadoop集群,a项目组要进行一个计算任务,b项目 ...

  10. lr文件下载脚本(文件参数化重命名)

    http://wenku.baidu.com/link?url=6oiIadyF9eFS4VshKbfJDnxrBh2IX919ndi0JO8yoqTRNRNIpavFrZJ9LPVb-FBSfbRY ...