---
title: "Discussion on \"WINDOWS: Change Ubuntu hostname running on WSL\" | Hashnode"
description: "Discussion on \"WINDOWS: Change Ubuntu hostname running on WSL\". If you want to change the Ubuntu hostname running on WSL, you might have already tried updating the /etc/hostname file, only to realize that after a reboot, the host name changes back to the original hostname.\nYou also might have already figured that..."
url: "https://hashnode.com/posts/change-ubuntu-hostname-running-on-wsl/64ea7d457a9fd3a318f69f7b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [WINDOWS: Change Ubuntu hostname running on WSL](https://tech.anupamm.com/change-ubuntu-hostname-running-on-wsl?utm_source=hashnode&utm_medium=feed)

If you want to change the Ubuntu hostname running on WSL, you might have already tried updating the /etc/hostname file, only to realize that after a reboot, the host name changes back to the original hostname. You also might have already figured that...

Mar 14, 2021 · 3 min read · tech.anupamm.com  
Updated Nov 9, 2024  
Read the article

-   [#wsl](https://hashnode.com/tag/wsl)
-   [#ubuntu](https://hashnode.com/tag/ubuntu)
-   [#windows](https://hashnode.com/tag/windows)
-   [#hostname](https://hashnode.com/tag/hostname)
-   [#linux](https://hashnode.com/tag/linux)

## Written by

[Anupam Majhi](https://hashnode.com/@anupammajhi)

@anupammajhi · Bangalore, India

  
[View profile](https://hashnode.com/@anupammajhi)

Tech Lead | DevOps, Cloud, FullStack, Data Science, Machine Learning, AI

A Tech Lead by profession, a Data Enthusiast and a forever learner. Experienced in DevOps, Cloud, FullStack Development, Data Science, Machine Learning and AI.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
