On Fri, 2022-12-30 at 12:57 -0500, Bill C wrote:
I usually use 'rm -rf /temp/*' and have been warned against
it. I
haven't seen any problems I know of happening because of this.
Owing to how file unlinking works in UNIX/Linux systems, if a process
has a temporary file open when you delete it, it won't be removed until
the process terminates. However it's unwise to rely on this when a
temporary file might be closed and re-opened, including by a different
process. That could lead to unpredictable behaviour because of race
conditions.
poc