Tail is a built-in command in Linux/GNU operating system. It prints the specified number of lines starting from the end of the file. Tail.exe can be downloaded and installed as a resource kit tool. It’s not included in the standard OS package.
This resource kit can be downloaded from here
Download the exe from the location and double click on it. It will install the tools in the default directory C:\Program Files\Windows Resource Kits\Tools
Syntax of the command is same for the resource kit tool and the one provided in Windows 7 OS.
C:\Program Files\Windows Resource Kits\Tools>tail.exe /? usage: TAIL [switches] [filename]* switches: [-?] display this message [-n] display last n lines of each file (default 10) [-f filename] keep checking filename for new lines
To print the last 10 lines of the file data.txt:
tail -10 data.txt
To print the data as and when it’s added to the file:
tail -f data.txt
The above command is mostly used for viewing log files contents while they are updated by applications.
Tail command with -f option does not terminate until the user presses Ctrl-C.