APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

2003/11/30 tail


© November 2003 Tony Lawrence

"tail syslog" shows the last ten lines of syslog.
"tail -20 syslog" shows the last 20 lines.
"tail +2 syslog" displays from line 2 to the end.
"tail -f syslog" shows the last ten lines, but then continues to monitor any new lines added and will show those as they occur.

On some systems, you'll have "tailf". It works like "tail -f", but is designed for laptops and portables where you want to conserve battery life: it's main advantage is that it doesn't read the file unless it actually changes, so it doesn't spin up powered down drives.

Tail can also work with characters rather than lines, though I can't think when I ever had the need for that.

GNU tail (Linux - "info tail") is a feature rich version of this old Unix favorite.


Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> tail


Inexpensive and informative Apple related e-books:

El Capitan: A Take Control Crash Course

Take Control of High Sierra

Photos for Mac: A Take Control Crash Course

iOS 10: A Take Control Crash Course

iOS 8: A Take Control Crash Course




More Articles by © Tony Lawrence




Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us


Printer Friendly Version





In fact, my main conclusion after spending ten years of my life working on the TEX project is that software is hard. It’s harder than anything else I’ve ever had to do. (Donald Knuth)




Linux posts

Troubleshooting posts


This post tagged:

Scripting

Shell

UnixWords



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode





SCO Unix Sales, Support, & Service

Phone:  707-SCO-UNIX (707-726-8649Toll Free: 833-SCO-UNIX (833-726-8649)
www.SCOsales.com