rm swap file linux code example Example: bash delete swap file find . -type f -name "*.sw[klmnop]" -delete