タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

lessに関するtaketyanのブックマーク (1)

  • Stop using tail -f (mostly)

    Stop using tail -f (mostly) 12 Mar 2015 I still see a lot of people using tail -f to monitor files that are changing, mostly log files. If you are one of them, let me show you a better alternative: less +F The less documentation explains well what this +F is all about: Scroll forward, and keep trying to read when the end of file is reached. Normally this command would be used when already at the e

    taketyan
    taketyan 2015/03/31
    less +F 便利だよ、っていうのはそうなんだけど、個人的には grep --line-buffered とか awk と組み合わせることが多いから tail のが良い。あと -f じゃなくて -F (inode が変わってもファイル名で追いかけ続ける)
  • 1