Created
February 12, 2025 08:13
-
-
Save ph5i/c08c9c0d947214d5c4627b18acf79ed8 to your computer and use it in GitHub Desktop.
change hostname wsl
This file contains hidden or 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 vi /etc/hostname | |
<OLD> --> wsl | |
sudo vi /etc/hosts | |
:%s/<OLD>/wsl/g | |
sudo vi /etc/wsl.conf | |
[network] | |
hostname=wsl | |
generateHosts=false | |
# from powershell | |
wsl --shutdown |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment