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?

[Linux][command] 起動時のイベント確認_dmesg, cat, journalctl -k

Last updated at Posted at 2025-02-21

dmesgコマンド

$ dmesg [オプション]
オプション 英語の由来 説明
default カーネルリングバッファの内容を標準出力に表示
-C
--clear
clear カーネルリングバッファの内容をクリア
-T timestamp 出力に人間が読みやすいタイムスタンプを付与
-L color カラー表示を有効にする
-k kernel カーネルメッセージのみを表示
-n level 表示するログレベルを変更

catコマンド

$ cat [オプション] ファイル
オプション 英語の由来 説明
default 指定したファイルの内容を標準出力に表示
-n number 各行に行番号を付与
-b number non-blank 空白行を除いて行番号を付与
-s squeeze 連続する空白行を1行にまとめる
-E end-of-line 行末に $ を表示
-T tab タブを ^I で表示

journalctl -kコマンド

$ journalctl -k [オプション]
$ journalctl --dmesg [オプション]
オプション 英語の由来 説明
default カーネル関連のログを表示
-b [ブートID] boot 指定したブート(起動)に対応するログを表示(例: -b 0 は現在のブート)
-r reverse 新しいログから順に表示
-n 行数 number 指定した行数だけ表示
-o 形式 output 表示フォーマットを変更(例: short, json, verbose
-f follow リアルタイムでログを追跡
--since since 指定した時刻以降のログを表示
--until until 指定した時刻までのログを表示

Ping-t

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?