Warning: include_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /home/users/2/moriya-h5/web/confrage/unix/unix_command/tail/tail.html on line 2

Warning: include_once(http://www.confrage.com/bin/header.php): failed to open stream: no suitable wrapper could be found in /home/users/2/moriya-h5/web/confrage/unix/unix_command/tail/tail.html on line 2

Warning: include_once(): Failed opening 'http://www.confrage.com/bin/header.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/unix/unix_command/tail/tail.html on line 2
tail | UNIX | 株式会社CONFRAGE
Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/menu.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/unix/unix_command/tail/tail.html on line 17

Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/menu.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/unix/unix_command/tail/tail.html on line 17
tail
tailはファイル内の末尾を参照するコマンドです。
使用方法は

tail test1.txt
というように実行するとtest1.txtの末尾10行を表示します。
デフォルトでは末尾は10行表示されます。

末尾の行数を指定
行数を指定したい場合は、以下のようにします。以下は末尾4行を表示する例です。

tail -4 test1.txt
このように行を指定することができます。

末尾をモニタリング
ファイルの末尾を表示するだけでなく、別のプロセスから

tail -f test1.txt
とすることで末尾の書き込みをモニタリングすることができます。
モニタリングを終了する場合は、Ctrl + cで終了します。

Back to top

Information

Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/side_bar.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/unix/unix_command/tail/tail.html on line 92

Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/side_bar.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/unix/unix_command/tail/tail.html on line 92

Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/seo.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/unix/unix_command/tail/tail.html on line 101

Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/seo.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/unix/unix_command/tail/tail.html on line 101