LoginSignup
2
2

More than 5 years have passed since last update.

【tail】Linux コマンド

Posted at

tail [option] file

ファイルの末尾を指定したバイトや行数を表示する。
※デフォルトは10行。

option

-c num
ファイルの最後のnum byteを表示する。

-n num
ファイルの最後のnum 行を表示する。
※いつも-'100'とか省略した形で実行していたけど、どうやら古い文法なのか...。
http://ja.wikipedia.org/wiki/Tail

-f
ファイルの末尾を表示しながら常に監視し、更新があった場合もリアルタイムで表示する。
-f (follow)
※logfile等、デバック等では必要不可欠。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2