echo -e "[boot]\nsystemd=true" | sudo tee -a /etc/wsl.confexit
wsl --shutdown
wsl| #!/bin/bash | |
| # Prompts the user for a URL if not provided as a command-line argument. | |
| # Extracts the ID from the given URL to use in API requests. | |
| function promptForURL() { | |
| local url="$1" | |
| until [ -n "$url" ]; do | |
| read -p "URL: " url | |
| done | |
| id=$(sed 's|.*gofile.io/d/||g' <<< "$url") |