daoluan
V2EX  ›  问与答

linux 你用什么命令查看实时更新的日志

  •  
  •   daoluan · Sep 24, 2014 · 6570 views
    This topic created in 4429 days ago, the information mentioned may be changed or developed.
    譬如我需要查看 id 为 xxx 用户的所有日志,在 console 里面实时显示。每次用 vim 查看好麻烦。
    9 replies  •  2014-09-24 13:03:08 +08:00
    luckywulin
    luckywulin
    Sep 24, 2014
    1
    tail
    pfitseng
    pfitseng
    Sep 24, 2014
    2
    tail -f
    mahone3297
    mahone3297
    Sep 24, 2014❤️1
    3
    tailf
    daoluan
    daoluan
    OP
    Sep 24, 2014
    4
    我自己分享一下:
    tailf -n 100 log.file | grep what_you_want.
    reeco
    reeco
    Sep 24, 2014
    5
    tail -f
    jedyu
    jedyu
    Sep 24, 2014
    6
    tail -f
    cloudbeyond
    cloudbeyond
    Sep 24, 2014
    7
    @daoluan tail -f log.file | grep what_you_want
    wisatbff
    wisatbff
    Sep 24, 2014
    8
    @daoluan 这个不行吧,假如新追加了超过100行呢
    leiz
    leiz
    Sep 24, 2014
    9
    tailf
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   987 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 19:19 · PVG 03:19 · LAX 11:19 · JFK 14:19
    ♥ Do have faith in what you're doing.