# Tail logs with \`less\`

**URL:** <https://forum.codeselfstudy.com/t/tail-logs-with-less/2688>\
**Category:** Operating Systems, Editors, and Tools\
**Created:** [July 16, 2021, 2:26am UTC](https://forum.codeselfstudy.com/t/tail-logs-with-less/2688 "2021-07-16T02:26:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh](https://forum.codeselfstudy.com/user_avatar/forum.codeselfstudy.com/josh/32/4_2.png) [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Post date:** [July 16, 2021, 2:26am UTC](https://forum.codeselfstudy.com/t/tail-logs-with-less/2688/1 "2021-07-16T02:26:58Z")

</div>

I recently learned that `less` can “follow” log files (like `tail -f`).

```nohighlight
$ less access.log

```

Then press shift+f to follow. Stop with ctrl+c. Pressing v opens the file in an editor.

I saw it in the comments [here](https://news.ycombinator.com/item?id=27813808). The comments also mention a tool called [Logfile Navigator](https://lnav.org/features) (lnav) that looks like it might be interesting.
