CodeX
Published in

CodeX

How to Tail a Text File on Different Operating Systems

Different ways to view log files

Are you looking for ways to tail a log file without reading the entire log into memory? One way to do this is to use the standard Linux <tail> command. For example, if you wanted to view the last ten lines of a log file named "mylog.log," you would use the following command: <tail -n 10 mylog.log>.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store