水平スクロールの改行を使用せずにログを追跡する方法は?

水平スクロールの改行を使用せずにログを追跡する方法は?

端末でプログラムがログをラップしたくない場合は、ログをless -S

Ctrlただし、キーボードを使った横スクロールはI+でなければ動作せず、Cその後は再びフォローモードに入る方法がわかりません。

質問:

  1. Ctrl+を押してフォローモードをオフにした後、水平方向にのみスクロールできますかC
  2. 後でフォローモードに戻す方法はありますか?

そうでない場合は、1.改行なしと2.クリッピングなし(必要に応じて水平スクロールを許可する)なしでログファイルのスクロールを追跡するためのより便利な方法はありますか?

ベストアンサー1

man less:

       F      Scroll forward, and keep trying to read when the end of file  is
              reached.   Normally  this  command would be used when already at
              the end of the file.  It is a way to monitor the tail of a  file
              which  is  growing  while  it is being viewed.  (The behavior is
              similar to the "tail -f" command.)  To  stop  waiting  for  more
              data,  enter the interrupt character (usually ^C).  On some sys‐
              tems you can also use ^X.

おすすめ記事