What's the Solaris equivalent to the BSD's 'tail -n100'?

kch picture kch · Nov 24, 2008 · Viewed 14.3k times · Source

I've looked this up a thousand times, and I always forget it, so, here for eternity:

Solaris has a bit of an awkward syntax for tail.

How do I do the equivalent of BSD's tail -nN?

What I want are the last N lines from tail's input.

Answer

Ulf Lindback picture Ulf Lindback · Nov 24, 2008

Just remove the "n"

tail -100