For example on a high traffic web server.
To reduce problems when switching a file I usually rename the old file out and then rename in the new file.
I was told some time ago that renaming a file does not change the 'inode data' so that processes reading the file can keep doing so without glitches. And, of course, rather than copying in the new file it is faster and safer to rename a temp copy.
Is this still best practice and if not what do you do?