Linux環境設定/BIOSクロックがUTCか確認する方法
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#navi(../)
* BIOSクロックがUTCか確認する方法 [#u53988e2]
BIOSで指定できる時間がUTCかどうか確認する方法を以下に記し...
確認したディストリビューションはCentOSとUbuntuになります。
#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)
* 関連記事 [#e54d8a60]
-[[指定したタイムゾーンのローカルタイムを表示する方法・TZ...
-[[マシンの日時を設定・変更する・date, ntpdate>逆引きUNIX...
-[[日時の表示フォーマット変更・dateコマンド>逆引きUNIXコ...
-[[翌日の日付を取得・dateコマンド>逆引きUNIXコマンド/翌日...
-[[前日の日付を取得・dateコマンド>逆引きUNIXコマンド/前日...
-[[出力情報に日時情報を付加したい>逆引きUNIXコマンド/出力...
-[[Nヶ月とN日前の日付を取得・dateコマンド>逆引きUNIXコマ...
-[[UNIX時間に変換・UNIX時間を取得する方法>逆引きUNIXコマ...
-[[今日の日付が月末かどうかをdateコマンドで確認する方法>...
* Ubuntuで確認する方法 [#wf58bfda]
以下のファイル内のUTCの値を確認します。
/etc/default/rcS
以下、catコマンドで出力した結果です。
sakura@ubuntu:~$ cat /etc/default/rcS
#
# /etc/default/rcS
#
# Default settings for the scripts in /etc/rcS.d/
#
# For information about these variables see the rcS(5) m...
#
# This file belongs to the "initscripts" package.
# delete files in /tmp during boot older than x days.
# '0' means always, -1 or 'infinite' disables the feature
TMPTIME=0
# spawn sulogin during boot, continue normal boot if not...
SULOGIN=no
# do not allow users to log in until the boot has comple...
DELAYLOGIN=no
# assume that the BIOS clock is set to UTC time (recomme...
UTC=yes
<snip>
* CentOSで確認する方法 [#u34ccf55]
以下のファイル内のUTCの値を確認します。(CentOS6を使用)
/etc/sysconfig/clock
以下、catコマンドで出力した結果です。
[sakura@centos6 ~]$ cat /etc/sysconfig/clock
# The time zone of the system is defined by the contents...
# This file is only for evaluation by system-config-date...
# contents elsewhere.
ZONE="Asia/Tokyo"
デフォルトの場合、UTCの記述がありません。~
UTCを無効にする場合は以下の文字列を追記します。
UTC="false"
以上、Ubuntu, CentOSでBIOSクロックがUTCかどうかを確認する...
#htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)
終了行:
#navi(../)
* BIOSクロックがUTCか確認する方法 [#u53988e2]
BIOSで指定できる時間がUTCかどうか確認する方法を以下に記し...
確認したディストリビューションはCentOSとUbuntuになります。
#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)
* 関連記事 [#e54d8a60]
-[[指定したタイムゾーンのローカルタイムを表示する方法・TZ...
-[[マシンの日時を設定・変更する・date, ntpdate>逆引きUNIX...
-[[日時の表示フォーマット変更・dateコマンド>逆引きUNIXコ...
-[[翌日の日付を取得・dateコマンド>逆引きUNIXコマンド/翌日...
-[[前日の日付を取得・dateコマンド>逆引きUNIXコマンド/前日...
-[[出力情報に日時情報を付加したい>逆引きUNIXコマンド/出力...
-[[Nヶ月とN日前の日付を取得・dateコマンド>逆引きUNIXコマ...
-[[UNIX時間に変換・UNIX時間を取得する方法>逆引きUNIXコマ...
-[[今日の日付が月末かどうかをdateコマンドで確認する方法>...
* Ubuntuで確認する方法 [#wf58bfda]
以下のファイル内のUTCの値を確認します。
/etc/default/rcS
以下、catコマンドで出力した結果です。
sakura@ubuntu:~$ cat /etc/default/rcS
#
# /etc/default/rcS
#
# Default settings for the scripts in /etc/rcS.d/
#
# For information about these variables see the rcS(5) m...
#
# This file belongs to the "initscripts" package.
# delete files in /tmp during boot older than x days.
# '0' means always, -1 or 'infinite' disables the feature
TMPTIME=0
# spawn sulogin during boot, continue normal boot if not...
SULOGIN=no
# do not allow users to log in until the boot has comple...
DELAYLOGIN=no
# assume that the BIOS clock is set to UTC time (recomme...
UTC=yes
<snip>
* CentOSで確認する方法 [#u34ccf55]
以下のファイル内のUTCの値を確認します。(CentOS6を使用)
/etc/sysconfig/clock
以下、catコマンドで出力した結果です。
[sakura@centos6 ~]$ cat /etc/sysconfig/clock
# The time zone of the system is defined by the contents...
# This file is only for evaluation by system-config-date...
# contents elsewhere.
ZONE="Asia/Tokyo"
デフォルトの場合、UTCの記述がありません。~
UTCを無効にする場合は以下の文字列を追記します。
UTC="false"
以上、Ubuntu, CentOSでBIOSクロックがUTCかどうかを確認する...
#htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)
ページ名: