0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Linux 作業メモ: 時間を進める/戻すコマンド

Posted at

Linuxのシステム時間を進めたり戻したりするコマンド。テストの時に重宝するのでメモ。


基本的には使うのはこのコマンドのみでOK.
date --set="STRING"

  • 例1. 時間を"4 DEC 2019 15:30:00"へ進めます。
# date
Mon Nov 25 11:41:16 PST 2019
# date --set="4 DEC 2019 15:30:00"
Wed Dec  4 15:30:00 PST 2019

  • 例2. 時間を25 NOV 2019 11:45:00"へ戻します。
# date --set="25 NOV 2019 11:45:00"
Mon Nov 25 11:45:00 PST 2019


便利なので是非ご利用ください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?