Follow

前にググったら fが出てきたけど、前にこれ読んだのでFつかっている

"つまり、tail -f は hoge.log から hoge.log.bak へのファイル名変更に追随しているということである。これは tail -f が特別なことをしているわけではなく、ファイルオープン中にファイル名が変更されても、オープン中のディスクリプタはリネーム前のファイルを指しているという UNIX の特性のためである。

一方、tail -F は、追加行を表示するという意味では同じであるが、ファイル名がリネームされた場合はファイルをオープンし直すという特徴がある。" x68000.q-e-d.net/~68user/unix/

Sign in to participate in the conversation
nesodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!