rm failure as device or resource busy when I wanna rm -rf myDir, log: Device or resource busy Reason: There are still process alive Solution: lsof +D yourDir kill -9 pid