Unix/Linux: Follow That File

Unix/Linux: Follow That File

In Linux/Unix command line you can follow a file with tail -f [filename]. As the file is updated, the screen will update. This is handy for following error logs, etc.

tail -f [filename]

I just learned from a co-worker that the ‘less’ command can do the same thing if you hit shift-F while viewing a file. Apparently, less does a lot more than I thought!

I think point and click interface is making me soft, I need to ‘man’ up and RTFM on some command line goodies.

$man less
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.