Skip to main content
Formatting
Source Link
AdminBee
  • 23.6k
  • 25
  • 55
  • 77

Instead of deleting a file held by a process that you can't kill now, you can empty that Loglog file with echoecho:

echo -n > /var/log/myapp.log 

youYou can check after that with dfdf command, Used bytes - the "Used bytes" column will be decreased.

Instead of deleting a file held by a process that you can't kill now, you can empty that Log file with echo

echo -n > /var/log/myapp.log 

you can check after that with df command, Used bytes column will be decreased

Instead of deleting a file held by a process that you can't kill now, you can empty that log file with echo:

echo -n > /var/log/myapp.log 

You can check after that with df command - the "Used bytes" column will be decreased.

Source Link

Instead of deleting a file held by a process that you can't kill now, you can empty that Log file with echo

echo -n > /var/log/myapp.log 

you can check after that with df command, Used bytes column will be decreased