What's the Solaris equivalent to the BSD's 'tail -n100'?
问题 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 -n N ? What I want are the last N lines from tail's input. 回答1: Just remove the "n" tail -100 回答2: Or you can use: /usr/xpg4/bin/tail which does behave like you want ( tail -n N ). xpg4 = Xopen Portability Guide Issue 4, contains binaries strictly compliant with several POSIX and other standards. The differences with