rsyslog特定のログイベントを記録するように設定しました/dev/xconsole:
*.*;cron.!=info;mail.!=info |/dev/xconsole
/dev/xconsole名前付きパイプ(fifo)です。ログに記録されているものを確認したい場合は、できますcat /dev/xconsole。コマンドcat /dev/xconsoleがファイルの読み取り後に終了せず、代わりにとして機能することを見て驚いていますtail -f。つまり、2つのコマンドは同じように動作します。
cat /dev/xconsole
tail -f /dev/xconsole
誰かがその理由を説明してもらえますか?
2つの間に違いはありますか?