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 3 years have passed since last update.

勉強日誌17日目(夜の部)

Posted at

夜の部開始

正答率 71% (71)

timedatectl set-time "年-月-日 時:分:秒"
システムクロックとハードウェアクロックを設定

pool
複数のNTPサーバを集約した名前を指定

ntpdate pool.ntp.org
タイムサーバ pool.ntp.org から現在時刻を取得するコマンド

tracking
chronycコマンドのサブコマンド、時刻同期の詳細情報

activity
chronycコマンドのサブコマンド、オンライン/オフライン状態のNTPサーバ数

sources
chronycコマンドのサブコマンドで、時刻のソースを表示

server
時刻を取得するNTPサーバを指定。自身はクライアントとしてNTPサーバの時刻に同期する関係

rtcsync
定期的にシステムクロックをハードウェアクロックに反映させるものは

date 月日年月日.秒
システムクロックを設定

正答率 61% (55)

-u
--unit
特定のユニットのログに限定して表示する

_SYSTEMD_UNIT=ログ
journalctlでログを指定

_UNIT=100
journalctlでrootユーザが生成したログ

-r
--reverse
最新のログから出力

journalctl
systemd でユニットが出力するログ

/var/log/journal
systemd-journald のログを永続的に保存させる

journalctl -o json
ログをjson形式で出力

--since
--until
特定の期間のログに限定して表示させる

-b
--boot
特定の起動時のログに限定して表示

sytemd-cat
systemd-journaldのジャーナルファイルに書き込む

systemd.journald
バイナリ形式のジャーナルファイル名

/var/log/wtmp
systemd-journald デーモンの設定ファイル名

正答率 60% (72)
/etc/cups
印刷サービスCUPSの設定ファイル

/var/spool/mail
sendmailの受信メール

/var/spool/mqueue
sendmailの送信メール

lpr
レガシーな印刷コマンド 印刷ジョブ登録、指定したファイルを印刷

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?