tail (target)

Copy last lines from files to stdout (POSIX, toybox)

Syntax:

tail [-n|c number] [-f|F] [-s seconds] [file...]

Runs on:

QNX OS

Options:

-c number
Output the last number of bytes; +number counts from start.
-F
Follow file(s) by filename, waiting for more data, and retrying.
-f
Follow file(s) by descriptor, waiting for more data to be appended.
-n number
Output the last number of lines (default 10); +number counts from start.
-s seconds
Used with -F; sleep the specified amount of seconds between retries (default 1).
file
The pathname of a file to use as input. A filename with the dash character (-) is a synonym for standard input.

Description:

The tail utility copies the last lines from its input files to stdout. If no files are listed, tail will copy the lines from stdin.

This utility is provided as part of the toybox package. For information on how to enable it, see toybox.

Contributing author:

Rob Landley and the toybox project (see https://landley.net/toybox/).

Page updated: