0

I have a bash script that writes to a file like so:

doSomething &>"${LOGFILE}";

The file got deleted while the script was running; then I learned from https://stackoverflow.com/a/984712 that

even if you where to delete the file from the directory the program would continue to write data to it (and use up disc space) even though no other program would have any way of referencing it.

The script may have written a large amount of data to the file after the delete; is there a way to regain access to the new contents to do a clean delete? Or is the space automatically freed up once the script quits?

Community
  • 1
  • 1

0 Answers0