Windows 10 Linux Subsystem How to Change User Name and PC Name for Bash ConsoleHow to sign into “root”...

Eww, those bytes are gross

Blindfold battle as a gladiatorial spectacle - what are the tactics and communication methods?

Explain the objections to these measures against human trafficking

Using only 1s, make 29 with the minimum number of digits

Traveling through the asteriod belt?

What are "industrial chops"?

How should I handle players who ignore the session zero agreement?

A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?

How would an AI self awareness kill switch work?

What's a good word to describe a public place that looks like it wouldn't be rough?

One Half of Ten; A Riddle

Why publish a research paper when a blog post or a lecture slide can have more citation count than a journal paper?

Publishing research using outdated methods

Find some digits of factorial 17

Roman Numerals equation 1

Which one of these password policies is more secure?

Why has the mole been redefined for 2019?

Writing a character who is going through a civilizing process without overdoing it?

Are there any modern advantages of a fire piston?

Early credit roll before the end of the film

Does paint affect EMI ability of enclosure?

Why zero tolerance on nudity in space?

Who is this Ant Woman character in this image alongside the Wasp?

Why do stocks necessarily drop during a recession?



Windows 10 Linux Subsystem How to Change User Name and PC Name for Bash Console


How to sign into “root” account by default on Windows Subsystem for Linux Bash terminalHow do I launch Bash for windows when I have cygwin installed?Bash on Windows / Windows Subsytem for Linux (WSL) not installing correctly / hangsWindows 10 bash and minttyHow to change default shell for Linux susbsystem for WindowsHow to connect to a remote server with my SSH keypair, through the new Windows 10 Linux bash?Changing home directory of user on Windows Subsystem for LinuxBash hangs in Linux subsystem in Windows 10Windows 10 Bash command not working, despite turning on Developer Mode and enabling “Windows Subsystem for Linux”Completely uninstall the subsystem for Linux on Win10?













5















When I first installed and ran Windows Linux Subsystem, console askded me to enter a new user name for bash. I input User. Now when I start bash in my console my username and PC name appeared at the beginning of the prompt, like



User@DESKTOP-TPQIRNP:/mnt/...


What should I do if I want to change my username for bash console? And PC name










share|improve this question























  • You change the PC Name in Windows, same way you have always done so, how you change the username your logged into should be simply su'ing as that user.

    – Ramhound
    Aug 5 '16 at 7:23











  • @Ramhound Thanks. But how to change user name for bash ? If I will change user name in windows it's don't change in bash console

    – Mikhail
    Aug 5 '16 at 7:25











  • If you have changed the PC Name, and your Windows username, and it isn't showing up in bash then you will have to reset the environment. I already suggest how you switch users within bash though.

    – Ramhound
    Aug 5 '16 at 7:27











  • You can switch "hosts" by simply using ssh hostname. Look at the configuration page to determine what your current hosts are. Two should already exist, the one your currently trying to access and the one you previously created.

    – Ramhound
    Aug 5 '16 at 7:36
















5















When I first installed and ran Windows Linux Subsystem, console askded me to enter a new user name for bash. I input User. Now when I start bash in my console my username and PC name appeared at the beginning of the prompt, like



User@DESKTOP-TPQIRNP:/mnt/...


What should I do if I want to change my username for bash console? And PC name










share|improve this question























  • You change the PC Name in Windows, same way you have always done so, how you change the username your logged into should be simply su'ing as that user.

    – Ramhound
    Aug 5 '16 at 7:23











  • @Ramhound Thanks. But how to change user name for bash ? If I will change user name in windows it's don't change in bash console

    – Mikhail
    Aug 5 '16 at 7:25











  • If you have changed the PC Name, and your Windows username, and it isn't showing up in bash then you will have to reset the environment. I already suggest how you switch users within bash though.

    – Ramhound
    Aug 5 '16 at 7:27











  • You can switch "hosts" by simply using ssh hostname. Look at the configuration page to determine what your current hosts are. Two should already exist, the one your currently trying to access and the one you previously created.

    – Ramhound
    Aug 5 '16 at 7:36














5












5








5


5






When I first installed and ran Windows Linux Subsystem, console askded me to enter a new user name for bash. I input User. Now when I start bash in my console my username and PC name appeared at the beginning of the prompt, like



User@DESKTOP-TPQIRNP:/mnt/...


What should I do if I want to change my username for bash console? And PC name










share|improve this question














When I first installed and ran Windows Linux Subsystem, console askded me to enter a new user name for bash. I input User. Now when I start bash in my console my username and PC name appeared at the beginning of the prompt, like



User@DESKTOP-TPQIRNP:/mnt/...


What should I do if I want to change my username for bash console? And PC name







windows-10 bash windows-subsystem-for-linux windows-10-v1607






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 5 '16 at 7:19









MikhailMikhail

232411




232411













  • You change the PC Name in Windows, same way you have always done so, how you change the username your logged into should be simply su'ing as that user.

    – Ramhound
    Aug 5 '16 at 7:23











  • @Ramhound Thanks. But how to change user name for bash ? If I will change user name in windows it's don't change in bash console

    – Mikhail
    Aug 5 '16 at 7:25











  • If you have changed the PC Name, and your Windows username, and it isn't showing up in bash then you will have to reset the environment. I already suggest how you switch users within bash though.

    – Ramhound
    Aug 5 '16 at 7:27











  • You can switch "hosts" by simply using ssh hostname. Look at the configuration page to determine what your current hosts are. Two should already exist, the one your currently trying to access and the one you previously created.

    – Ramhound
    Aug 5 '16 at 7:36



















  • You change the PC Name in Windows, same way you have always done so, how you change the username your logged into should be simply su'ing as that user.

    – Ramhound
    Aug 5 '16 at 7:23











  • @Ramhound Thanks. But how to change user name for bash ? If I will change user name in windows it's don't change in bash console

    – Mikhail
    Aug 5 '16 at 7:25











  • If you have changed the PC Name, and your Windows username, and it isn't showing up in bash then you will have to reset the environment. I already suggest how you switch users within bash though.

    – Ramhound
    Aug 5 '16 at 7:27











  • You can switch "hosts" by simply using ssh hostname. Look at the configuration page to determine what your current hosts are. Two should already exist, the one your currently trying to access and the one you previously created.

    – Ramhound
    Aug 5 '16 at 7:36

















You change the PC Name in Windows, same way you have always done so, how you change the username your logged into should be simply su'ing as that user.

– Ramhound
Aug 5 '16 at 7:23





You change the PC Name in Windows, same way you have always done so, how you change the username your logged into should be simply su'ing as that user.

– Ramhound
Aug 5 '16 at 7:23













@Ramhound Thanks. But how to change user name for bash ? If I will change user name in windows it's don't change in bash console

– Mikhail
Aug 5 '16 at 7:25





@Ramhound Thanks. But how to change user name for bash ? If I will change user name in windows it's don't change in bash console

– Mikhail
Aug 5 '16 at 7:25













If you have changed the PC Name, and your Windows username, and it isn't showing up in bash then you will have to reset the environment. I already suggest how you switch users within bash though.

– Ramhound
Aug 5 '16 at 7:27





If you have changed the PC Name, and your Windows username, and it isn't showing up in bash then you will have to reset the environment. I already suggest how you switch users within bash though.

– Ramhound
Aug 5 '16 at 7:27













You can switch "hosts" by simply using ssh hostname. Look at the configuration page to determine what your current hosts are. Two should already exist, the one your currently trying to access and the one you previously created.

– Ramhound
Aug 5 '16 at 7:36





You can switch "hosts" by simply using ssh hostname. Look at the configuration page to determine what your current hosts are. Two should already exist, the one your currently trying to access and the one you previously created.

– Ramhound
Aug 5 '16 at 7:36










4 Answers
4






active

oldest

votes


















10














According to therobyouknow's comment, LxRun.exe is deprecated now.



Please refer to Mitchell Van Manen's answer if you're using the new version of subsystem.



====================================================================



You should use LxRun.exe command locating in C:WINDOWSsystem32.



Here are two solutions, which are all run in cmd.exe instead of bash.





  • Use the command below to create a new user and set it as the default user:



    LxRun.exe /setdefaultuser NEW_USER



  • OR Uninstall Linux subsystem fully and reinstall it



    LxRun.exe /uninstall /full
    LxRun.exe /install


    The next time you reenter bash, it will prompt you to input username.








share|improve this answer


























  • For a newer version of the subsystem (i.e. one downloaded/upgraded-to as of date of this comment), one would need use the answer provided by @Mitchell Van Manen - superuser.com/a/1280390/21353 (I found that answer to work). Otherwise you get: Warning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution

    – therobyouknow
    May 22 '18 at 18:36






  • 1





    @therobyouknow thanks for the reminder! I've updated my answer.

    – oryxfea
    May 23 '18 at 2:17











  • You're welcome +1 upvote on your comment oryxfea and answer and also +1 upvote on Mitchell Van Manen's answer. Thank you.

    – therobyouknow
    May 23 '18 at 11:59



















8














In the new version of the subsystem, the command is (from elevated cmd.exe):



C:> ubuntu run sudo usermod -l newUsername oldUsername



this way you will circumvent logging in with the old username first.






share|improve this answer



















  • 1





    This solved it for me with the newer version of subsystem.

    – bcar
    Jan 11 '18 at 17:06











  • C:> ubuntu run sudo usermod -l newUsername -p /home/newUsername -m oldUsername also renames home folder

    – Pav K.
    Oct 10 '18 at 13:04



















2














Article thread.



You have to create a ssh_config and put your username into it. The location within the Windows Linux Subsystem is /mnt/%windir%/windows



Create ~/.ssh/config file and name write your username inside the file like:



user New_User_Name


You do not have to worry about permissions.






share|improve this answer


























  • Thanks. When I should create ~/.ssh/config file ? Where in Windows is root Windows Linux Subsystem directory ? How can I find it ?

    – Mikhail
    Aug 5 '16 at 7:41













  • it's /mnt/%windir%/windows

    – phuclv
    Aug 5 '16 at 8:53













  • I think this is more for Git Bash not the new Windows Linux Subsystem,

    – Michael Minton
    Apr 7 '17 at 18:35



















0














@Mitchell Van Manen's answer does not work. A elevated command prompt will use the ubuntu you have installed on your admin account, or if there is no ubuntu it simply wont work. I changed my username by following the answer here: https://serverfault.com/a/653514/512362



Note that for step 2. you need to use the following command from cmd: ubuntu config --default-user temp and then you will be able to log in as that user. You can use the same command to set your default user back when you have renamed the user (but BEFORE YOU HAVE DELETED TEMP USER)






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1110092%2fwindows-10-linux-subsystem-how-to-change-user-name-and-pc-name-for-bash-console%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    4 Answers
    4






    active

    oldest

    votes








    4 Answers
    4






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    10














    According to therobyouknow's comment, LxRun.exe is deprecated now.



    Please refer to Mitchell Van Manen's answer if you're using the new version of subsystem.



    ====================================================================



    You should use LxRun.exe command locating in C:WINDOWSsystem32.



    Here are two solutions, which are all run in cmd.exe instead of bash.





    • Use the command below to create a new user and set it as the default user:



      LxRun.exe /setdefaultuser NEW_USER



    • OR Uninstall Linux subsystem fully and reinstall it



      LxRun.exe /uninstall /full
      LxRun.exe /install


      The next time you reenter bash, it will prompt you to input username.








    share|improve this answer


























    • For a newer version of the subsystem (i.e. one downloaded/upgraded-to as of date of this comment), one would need use the answer provided by @Mitchell Van Manen - superuser.com/a/1280390/21353 (I found that answer to work). Otherwise you get: Warning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution

      – therobyouknow
      May 22 '18 at 18:36






    • 1





      @therobyouknow thanks for the reminder! I've updated my answer.

      – oryxfea
      May 23 '18 at 2:17











    • You're welcome +1 upvote on your comment oryxfea and answer and also +1 upvote on Mitchell Van Manen's answer. Thank you.

      – therobyouknow
      May 23 '18 at 11:59
















    10














    According to therobyouknow's comment, LxRun.exe is deprecated now.



    Please refer to Mitchell Van Manen's answer if you're using the new version of subsystem.



    ====================================================================



    You should use LxRun.exe command locating in C:WINDOWSsystem32.



    Here are two solutions, which are all run in cmd.exe instead of bash.





    • Use the command below to create a new user and set it as the default user:



      LxRun.exe /setdefaultuser NEW_USER



    • OR Uninstall Linux subsystem fully and reinstall it



      LxRun.exe /uninstall /full
      LxRun.exe /install


      The next time you reenter bash, it will prompt you to input username.








    share|improve this answer


























    • For a newer version of the subsystem (i.e. one downloaded/upgraded-to as of date of this comment), one would need use the answer provided by @Mitchell Van Manen - superuser.com/a/1280390/21353 (I found that answer to work). Otherwise you get: Warning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution

      – therobyouknow
      May 22 '18 at 18:36






    • 1





      @therobyouknow thanks for the reminder! I've updated my answer.

      – oryxfea
      May 23 '18 at 2:17











    • You're welcome +1 upvote on your comment oryxfea and answer and also +1 upvote on Mitchell Van Manen's answer. Thank you.

      – therobyouknow
      May 23 '18 at 11:59














    10












    10








    10







    According to therobyouknow's comment, LxRun.exe is deprecated now.



    Please refer to Mitchell Van Manen's answer if you're using the new version of subsystem.



    ====================================================================



    You should use LxRun.exe command locating in C:WINDOWSsystem32.



    Here are two solutions, which are all run in cmd.exe instead of bash.





    • Use the command below to create a new user and set it as the default user:



      LxRun.exe /setdefaultuser NEW_USER



    • OR Uninstall Linux subsystem fully and reinstall it



      LxRun.exe /uninstall /full
      LxRun.exe /install


      The next time you reenter bash, it will prompt you to input username.








    share|improve this answer















    According to therobyouknow's comment, LxRun.exe is deprecated now.



    Please refer to Mitchell Van Manen's answer if you're using the new version of subsystem.



    ====================================================================



    You should use LxRun.exe command locating in C:WINDOWSsystem32.



    Here are two solutions, which are all run in cmd.exe instead of bash.





    • Use the command below to create a new user and set it as the default user:



      LxRun.exe /setdefaultuser NEW_USER



    • OR Uninstall Linux subsystem fully and reinstall it



      LxRun.exe /uninstall /full
      LxRun.exe /install


      The next time you reenter bash, it will prompt you to input username.









    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited May 23 '18 at 2:17

























    answered Aug 7 '16 at 5:09









    oryxfeaoryxfea

    1164




    1164













    • For a newer version of the subsystem (i.e. one downloaded/upgraded-to as of date of this comment), one would need use the answer provided by @Mitchell Van Manen - superuser.com/a/1280390/21353 (I found that answer to work). Otherwise you get: Warning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution

      – therobyouknow
      May 22 '18 at 18:36






    • 1





      @therobyouknow thanks for the reminder! I've updated my answer.

      – oryxfea
      May 23 '18 at 2:17











    • You're welcome +1 upvote on your comment oryxfea and answer and also +1 upvote on Mitchell Van Manen's answer. Thank you.

      – therobyouknow
      May 23 '18 at 11:59



















    • For a newer version of the subsystem (i.e. one downloaded/upgraded-to as of date of this comment), one would need use the answer provided by @Mitchell Van Manen - superuser.com/a/1280390/21353 (I found that answer to work). Otherwise you get: Warning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution

      – therobyouknow
      May 22 '18 at 18:36






    • 1





      @therobyouknow thanks for the reminder! I've updated my answer.

      – oryxfea
      May 23 '18 at 2:17











    • You're welcome +1 upvote on your comment oryxfea and answer and also +1 upvote on Mitchell Van Manen's answer. Thank you.

      – therobyouknow
      May 23 '18 at 11:59

















    For a newer version of the subsystem (i.e. one downloaded/upgraded-to as of date of this comment), one would need use the answer provided by @Mitchell Van Manen - superuser.com/a/1280390/21353 (I found that answer to work). Otherwise you get: Warning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution

    – therobyouknow
    May 22 '18 at 18:36





    For a newer version of the subsystem (i.e. one downloaded/upgraded-to as of date of this comment), one would need use the answer provided by @Mitchell Van Manen - superuser.com/a/1280390/21353 (I found that answer to work). Otherwise you get: Warning: lxrun.exe is only used to configure the legacy Windows Subsystem for Linux distribution

    – therobyouknow
    May 22 '18 at 18:36




    1




    1





    @therobyouknow thanks for the reminder! I've updated my answer.

    – oryxfea
    May 23 '18 at 2:17





    @therobyouknow thanks for the reminder! I've updated my answer.

    – oryxfea
    May 23 '18 at 2:17













    You're welcome +1 upvote on your comment oryxfea and answer and also +1 upvote on Mitchell Van Manen's answer. Thank you.

    – therobyouknow
    May 23 '18 at 11:59





    You're welcome +1 upvote on your comment oryxfea and answer and also +1 upvote on Mitchell Van Manen's answer. Thank you.

    – therobyouknow
    May 23 '18 at 11:59













    8














    In the new version of the subsystem, the command is (from elevated cmd.exe):



    C:> ubuntu run sudo usermod -l newUsername oldUsername



    this way you will circumvent logging in with the old username first.






    share|improve this answer



















    • 1





      This solved it for me with the newer version of subsystem.

      – bcar
      Jan 11 '18 at 17:06











    • C:> ubuntu run sudo usermod -l newUsername -p /home/newUsername -m oldUsername also renames home folder

      – Pav K.
      Oct 10 '18 at 13:04
















    8














    In the new version of the subsystem, the command is (from elevated cmd.exe):



    C:> ubuntu run sudo usermod -l newUsername oldUsername



    this way you will circumvent logging in with the old username first.






    share|improve this answer



















    • 1





      This solved it for me with the newer version of subsystem.

      – bcar
      Jan 11 '18 at 17:06











    • C:> ubuntu run sudo usermod -l newUsername -p /home/newUsername -m oldUsername also renames home folder

      – Pav K.
      Oct 10 '18 at 13:04














    8












    8








    8







    In the new version of the subsystem, the command is (from elevated cmd.exe):



    C:> ubuntu run sudo usermod -l newUsername oldUsername



    this way you will circumvent logging in with the old username first.






    share|improve this answer













    In the new version of the subsystem, the command is (from elevated cmd.exe):



    C:> ubuntu run sudo usermod -l newUsername oldUsername



    this way you will circumvent logging in with the old username first.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Dec 27 '17 at 12:24









    Mitchell Van ManenMitchell Van Manen

    9111




    9111








    • 1





      This solved it for me with the newer version of subsystem.

      – bcar
      Jan 11 '18 at 17:06











    • C:> ubuntu run sudo usermod -l newUsername -p /home/newUsername -m oldUsername also renames home folder

      – Pav K.
      Oct 10 '18 at 13:04














    • 1





      This solved it for me with the newer version of subsystem.

      – bcar
      Jan 11 '18 at 17:06











    • C:> ubuntu run sudo usermod -l newUsername -p /home/newUsername -m oldUsername also renames home folder

      – Pav K.
      Oct 10 '18 at 13:04








    1




    1





    This solved it for me with the newer version of subsystem.

    – bcar
    Jan 11 '18 at 17:06





    This solved it for me with the newer version of subsystem.

    – bcar
    Jan 11 '18 at 17:06













    C:> ubuntu run sudo usermod -l newUsername -p /home/newUsername -m oldUsername also renames home folder

    – Pav K.
    Oct 10 '18 at 13:04





    C:> ubuntu run sudo usermod -l newUsername -p /home/newUsername -m oldUsername also renames home folder

    – Pav K.
    Oct 10 '18 at 13:04











    2














    Article thread.



    You have to create a ssh_config and put your username into it. The location within the Windows Linux Subsystem is /mnt/%windir%/windows



    Create ~/.ssh/config file and name write your username inside the file like:



    user New_User_Name


    You do not have to worry about permissions.






    share|improve this answer


























    • Thanks. When I should create ~/.ssh/config file ? Where in Windows is root Windows Linux Subsystem directory ? How can I find it ?

      – Mikhail
      Aug 5 '16 at 7:41













    • it's /mnt/%windir%/windows

      – phuclv
      Aug 5 '16 at 8:53













    • I think this is more for Git Bash not the new Windows Linux Subsystem,

      – Michael Minton
      Apr 7 '17 at 18:35
















    2














    Article thread.



    You have to create a ssh_config and put your username into it. The location within the Windows Linux Subsystem is /mnt/%windir%/windows



    Create ~/.ssh/config file and name write your username inside the file like:



    user New_User_Name


    You do not have to worry about permissions.






    share|improve this answer


























    • Thanks. When I should create ~/.ssh/config file ? Where in Windows is root Windows Linux Subsystem directory ? How can I find it ?

      – Mikhail
      Aug 5 '16 at 7:41













    • it's /mnt/%windir%/windows

      – phuclv
      Aug 5 '16 at 8:53













    • I think this is more for Git Bash not the new Windows Linux Subsystem,

      – Michael Minton
      Apr 7 '17 at 18:35














    2












    2








    2







    Article thread.



    You have to create a ssh_config and put your username into it. The location within the Windows Linux Subsystem is /mnt/%windir%/windows



    Create ~/.ssh/config file and name write your username inside the file like:



    user New_User_Name


    You do not have to worry about permissions.






    share|improve this answer















    Article thread.



    You have to create a ssh_config and put your username into it. The location within the Windows Linux Subsystem is /mnt/%windir%/windows



    Create ~/.ssh/config file and name write your username inside the file like:



    user New_User_Name


    You do not have to worry about permissions.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited May 23 '17 at 12:41









    Community

    1




    1










    answered Aug 5 '16 at 7:29









    Animesh PatraAnimesh Patra

    2,0341513




    2,0341513













    • Thanks. When I should create ~/.ssh/config file ? Where in Windows is root Windows Linux Subsystem directory ? How can I find it ?

      – Mikhail
      Aug 5 '16 at 7:41













    • it's /mnt/%windir%/windows

      – phuclv
      Aug 5 '16 at 8:53













    • I think this is more for Git Bash not the new Windows Linux Subsystem,

      – Michael Minton
      Apr 7 '17 at 18:35



















    • Thanks. When I should create ~/.ssh/config file ? Where in Windows is root Windows Linux Subsystem directory ? How can I find it ?

      – Mikhail
      Aug 5 '16 at 7:41













    • it's /mnt/%windir%/windows

      – phuclv
      Aug 5 '16 at 8:53













    • I think this is more for Git Bash not the new Windows Linux Subsystem,

      – Michael Minton
      Apr 7 '17 at 18:35

















    Thanks. When I should create ~/.ssh/config file ? Where in Windows is root Windows Linux Subsystem directory ? How can I find it ?

    – Mikhail
    Aug 5 '16 at 7:41







    Thanks. When I should create ~/.ssh/config file ? Where in Windows is root Windows Linux Subsystem directory ? How can I find it ?

    – Mikhail
    Aug 5 '16 at 7:41















    it's /mnt/%windir%/windows

    – phuclv
    Aug 5 '16 at 8:53







    it's /mnt/%windir%/windows

    – phuclv
    Aug 5 '16 at 8:53















    I think this is more for Git Bash not the new Windows Linux Subsystem,

    – Michael Minton
    Apr 7 '17 at 18:35





    I think this is more for Git Bash not the new Windows Linux Subsystem,

    – Michael Minton
    Apr 7 '17 at 18:35











    0














    @Mitchell Van Manen's answer does not work. A elevated command prompt will use the ubuntu you have installed on your admin account, or if there is no ubuntu it simply wont work. I changed my username by following the answer here: https://serverfault.com/a/653514/512362



    Note that for step 2. you need to use the following command from cmd: ubuntu config --default-user temp and then you will be able to log in as that user. You can use the same command to set your default user back when you have renamed the user (but BEFORE YOU HAVE DELETED TEMP USER)






    share|improve this answer




























      0














      @Mitchell Van Manen's answer does not work. A elevated command prompt will use the ubuntu you have installed on your admin account, or if there is no ubuntu it simply wont work. I changed my username by following the answer here: https://serverfault.com/a/653514/512362



      Note that for step 2. you need to use the following command from cmd: ubuntu config --default-user temp and then you will be able to log in as that user. You can use the same command to set your default user back when you have renamed the user (but BEFORE YOU HAVE DELETED TEMP USER)






      share|improve this answer


























        0












        0








        0







        @Mitchell Van Manen's answer does not work. A elevated command prompt will use the ubuntu you have installed on your admin account, or if there is no ubuntu it simply wont work. I changed my username by following the answer here: https://serverfault.com/a/653514/512362



        Note that for step 2. you need to use the following command from cmd: ubuntu config --default-user temp and then you will be able to log in as that user. You can use the same command to set your default user back when you have renamed the user (but BEFORE YOU HAVE DELETED TEMP USER)






        share|improve this answer













        @Mitchell Van Manen's answer does not work. A elevated command prompt will use the ubuntu you have installed on your admin account, or if there is no ubuntu it simply wont work. I changed my username by following the answer here: https://serverfault.com/a/653514/512362



        Note that for step 2. you need to use the following command from cmd: ubuntu config --default-user temp and then you will be able to log in as that user. You can use the same command to set your default user back when you have renamed the user (but BEFORE YOU HAVE DELETED TEMP USER)







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 13 mins ago









        AlmenonAlmenon

        73




        73






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1110092%2fwindows-10-linux-subsystem-how-to-change-user-name-and-pc-name-for-bash-console%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Cannot install PyQt5 The Next CEO of Stack OverflowCannot install tcpreplay 3.4.4cannot...

            Kapp-Putsch Acontecimentos | Outros artigos | Menu de navegação

            Why did early computer designers eschew integers? The Next CEO of Stack OverflowWhat register...