Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/tail/tail.1
Show All 25 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" @(#)tail.1 8.1 (Berkeley) 6/6/93 | .\" @(#)tail.1 8.1 (Berkeley) 6/6/93 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd April 10, 2018 | .Dd March 22, 2020 | ||||
.Dt TAIL 1 | .Dt TAIL 1 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm tail | .Nm tail | ||||
.Nd display the last part of a file | .Nd display the last part of a file | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.Nm | .Nm | ||||
.Op Fl F | f | r | .Op Fl F | f | r | ||||
▲ Show 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | |||||
.Sh EXAMPLES | .Sh EXAMPLES | ||||
To display the last 500 lines of the file | To display the last 500 lines of the file | ||||
.Ar foo : | .Ar foo : | ||||
.Pp | .Pp | ||||
.Dl $ tail -n 500 foo | .Dl $ tail -n 500 foo | ||||
.Pp | .Pp | ||||
Keep | Keep | ||||
.Pa /var/log/messages | .Pa /var/log/messages | ||||
open, displaying to the standard output anything appended to the file: | open, displaying to the standard output anything appended to the file | ||||
(potential file rotations are handled by the | |||||
.Fl F | |||||
flag): | |||||
.Pp | .Pp | ||||
.Dl $ tail -f /var/log/messages | .Dl $ tail -F /var/log/messages | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr cat 1 , | .Xr cat 1 , | ||||
.Xr head 1 , | .Xr head 1 , | ||||
.Xr sed 1 | .Xr sed 1 | ||||
.Sh STANDARDS | .Sh STANDARDS | ||||
The | The | ||||
.Nm | .Nm | ||||
utility is expected to be a superset of the | utility is expected to be a superset of the | ||||
Show All 34 Lines |