LoginSignup
1
0

More than 1 year has passed since last update.

【Linux】tailコマンドとは?

Posted at

tailコマンドとは?

指定したファイルの末尾部分を表示するコマンド。

書式

tail [オプション] [ファイル名]

オプション

オプション 動作
-n 行数, -行数 指定した行数を表示する。
-c バイト数 指定したバイト数を表示する
-f ファイルの末尾に表示された行を表示し続ける

-fは更新された部分を表示し続けるのでファイルを監視する際などに使用される。

1
0
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
1
0