d-goo supercelldinger

コンピュータ、サーバー関係のいろんな覚え書き それと雑談

Linux コマンド tail 末尾(テイル、しっぽ)を表示する

ログファイルなど、かなり行数がとても多いファイルの 末尾(テイル、しっぽ)を表示する

デフォルトでは10行表示

[root@test logs]# tail xxxx.com-access_log

-nオプションで表示行数を指定(100行の場合)

[root@test logs]# tail -n 100  xxxx.com-access_log