使用“less?”从磁盘重新加载文件以显示更改的命令

Dan*_*ens 9 unix command-line less

less是有重装从一个磁盘文件的命令,这样不太会显示自少开始对文件所做的任何更改?less如果我想查看我正在查看的文件的更改,这将使我不必终止并重新启动。

thr*_*rig 7

精细手册中详细介绍了两个可能相关的命令 less(1)

   R      Repaint the screen, discarding any buffered  input.   Useful  if
          the file is changing while it is being viewed.

   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.)
Run Code Online (Sandbox Code Playgroud)