Skip to content

Instantly share code, notes, and snippets.

@wilvk
Created August 16, 2017 06:50
Show Gist options
  • Save wilvk/aad8ac55bb1fb4ff60c727f638d10f47 to your computer and use it in GitHub Desktop.
Save wilvk/aad8ac55bb1fb4ff60c727f638d10f47 to your computer and use it in GitHub Desktop.
Linux - Kill all processes of deleted files that are still open
#!/bin/bash
lsof|grep deleted|awk '{print $2}'|xargs kill -9
@gscode-source
Copy link

Awesome! Thank you!

@MuhammedKerim
Copy link

MuhammedKerim commented Nov 16, 2022

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment