Created
July 28, 2024 21:59
-
-
Save rhom6us/c9624d2ee919f742aa6c9589756aae7a to your computer and use it in GitHub Desktop.
WSL - change hostname
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>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