How can I get the source code for the linux utility tail?

Haiyuan Zhang picture Haiyuan Zhang · Sep 17, 2009 · Viewed 23.8k times · Source

this command is really very useful but where I can get the source code to see what is going on inside .

thanks .

Answer

Stef picture Stef · Sep 17, 2009

The tail utility is part of the coreutils on linux.

I've always found FreeBSD to have far clearer source code than the gnu utilities. So here's tail.c in the FreeBSD project: