Skip to main content
Add quotes to title for better readability
Link
Volker Siegel
  • 17.8k
  • 6
  • 56
  • 81

Does less"less" have a feature like tail"tail --follow=namefollow=name" ("-FF")

Tweeted twitter.com/#!/StackUnix/status/587991003233132544
edited title
Link
Volker Siegel
  • 17.8k
  • 6
  • 56
  • 81

Does less have a feature like tail --follow=name (-F)

Source Link
Volker Siegel
  • 17.8k
  • 6
  • 56
  • 81

Does less have a feature like tail --follow=name

The command less can be used to replace tail in

tail -f file 

to provide features like handling binary output and navigating the scrollback:

less +F file 

The + prefix means "pretend I type that after startup", and the key F starts following.

But can less also replace

tail --follow=name file 

which follows file even if the actual file gets deleted or moved away, like a log file that is moved to file.log.1, and then a new file is created with the same name as the followed file?