Skip to content

Instantly share code, notes, and snippets.

@rhom6us
Created July 28, 2024 21:59
Show Gist options
  • Save rhom6us/c9624d2ee919f742aa6c9589756aae7a to your computer and use it in GitHub Desktop.
Save rhom6us/c9624d2ee919f742aa6c9589756aae7a to your computer and use it in GitHub Desktop.
WSL - change hostname
>sudo nano /etc/wsl.conf
[network]
hostname = <new name>
generateHosts = false
>sudo nano /etc/hosts
change all occurances of old host name to new
>wsl --shutdown
wait 8 seconds
should be done now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment