Truncating a file while it’s being used (Linux) August 5, 2023 by Tarik As of coreutils 7.0, there is a truncate command.