差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| linux:commands:system_log [2013/10/14 17:49] – [journalctl のTAB補完] ともやん | linux:commands:system_log [2019/05/18 02:23] (現在) – 外部編集 非ログインユーザー | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| ====== システムログ関連 ====== | ====== システムログ関連 ====== | ||
| - | ^  コマンド | + | ^ | 
| - | | $ sudo less / | + | | $ sudo less / | 
| - | | $ sudo less / | + | | $ sudo less / | 
| - | | $ sudo less / | + | | $ sudo tail -f / | 
| - | | $ sudo less / | + | | $ sudo grep named / | 
| - | | $ sudo less / | + | | $ sudo less / | 
| - | | $ %%dmesg | less%% | カーネルのリングバッファの内容を表示。 | | + | | $ sudo less / | 
| - | | $ sudo less / | + | | $ sudo less / | 
| - | | $ sudo less / | + | | $ %%dmesg | less%% | 
| + | | $ sudo less / | ||
| + | | $ sudo less / | ||
| + | | | $ journalctl -xe | 最近の詳細メッセージに関するログ。 | | ||
| ===== systemd関連ログ ===== | ===== systemd関連ログ ===== | ||
| 起動時からの全てのログ。 | 起動時からの全てのログ。 | ||
| 行 51: | 行 53: | ||
| journalctl _COMM=に続けてTABキーを入力 | journalctl _COMM=に続けてTABキーを入力 | ||
| < | < | ||
| - | $ journalctl _COMM= | + | $ journalctl _COMM=<TAB> | 
| dbus-daemon | dbus-daemon | ||
| gnome-keyring-d | gnome-keyring-d | ||
| 行 58: | 行 60: | ||
| journalctl _COMM=sshdに続けてEnterキーを入力 | journalctl _COMM=sshdに続けてEnterキーを入力 | ||
| < | < | ||
| - | $ journalctl _COMM=sshd | + | $ journalctl _COMM=sshd | 
| Hint: You are currently not seeing messages from other users and the system. | Hint: You are currently not seeing messages from other users and the system. | ||
| Users in the groups ' | Users in the groups ' | ||
| 行 65: | 行 67: | ||
| 9月 29 02:08:51 localhost.localdomain sshd[5427]: subsystem request for sftp by user tomoyan | 9月 29 02:08:51 localhost.localdomain sshd[5427]: subsystem request for sftp by user tomoyan | ||
| 9月 29 02:09:27 localhost.localdomain sshd[5483]: subsystem request for sftp by user tomoyan | 9月 29 02:09:27 localhost.localdomain sshd[5483]: subsystem request for sftp by user tomoyan | ||
| + | </ | ||