Skip to content

Instantly share code, notes, and snippets.

@Z1xus
Created November 20, 2023 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Z1xus/993ce495dba1ed56212c4b1ec6a5bdf5 to your computer and use it in GitHub Desktop.
Save Z1xus/993ce495dba1ed56212c4b1ec6a5bdf5 to your computer and use it in GitHub Desktop.
#!/bin/bash
read -p "Are you sure you want to continue? (y/N) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "Removing 'june'..."
find / \( -path /proc -o -path /sys -o -path /dev -o -path /run -o -path /var/run -o -path /tmp -o -path /snap -o -path /var/lib/snapd \) -prune -o -type f -name 'june' -exec rm -f {} +
echo "Removal complete."
else
echo "Operation aborted by the user."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment