rm: cannot remove 'hiberfil.sys': Device or resource busy code example Example: device or resource busy lsof +D /path kill -9 $PID