Editing .bashrc in WSL safelyWhere is .bashrc file located in WSL?What's the easiest way to run GUI apps on Windows Subsystem for Linux as of 2018?How to use win explorer to create folders for Bash on Ubuntu on Windows?Running gnome-keyring on WSL (Windows Subsystem for Linux)Ubuntu/ Windows Shared Folder (using WSL)How can I run services in WSLRunning gnome-software on WindowsUbuntu 19.04 installed into WSL “Windows System for Linux” on Win10 host - How? Will it run Graphics intensive programs?AWS on Ubuntu WSLWhy can I use my RSA keys with the Git Bash app but not with Ubuntu WSL on my Windows machine?

What is an example of a sequence which "thins out" and is finite?

What does shimmy in nose landing gear mean?

Does a resurrected wizard remember their prepared spells?

Which attack stat does each starter Pokemon favour in Pokemon Sword and Shield?

Isn't any conversation with the US president quid-pro-quo?

Can a website incur liability for linking to a funding campaign for a lawsuit against it?

Why telnet is considered to be a protocol? Isn't it just a simple TCP send/echo program?

Was it possible for a message from Paris to reach London within 48 hours in 1782?

What is the "two-drive trick" that can read Amiga disks on a PC?

In-body neutral density (ND) filters?

Why superuser permission is needed for accessing /data partition?

Why would a family misspell their surname?

Are there any dishes that can only be cooked with a microwave?

What exactly is "Japanese" Salt and Pepper?

What is the maximum distance you can cause damage from?

Unique magic triplets

Why are there so many binary systems?

Does 5e have a Manual of the Planes?

TSP with revenue maximization

Raised concerns about a security vulnerability to various managers, for more than a year, with no results. Should I mention it to external auditors?

Does Global Entry require agreeing to a higher standard of behavior?

What was the deal with the news stories about rats in "Joker"?

Phrase/Word-pair for a variant of master-slave relationship

What does this docker log entry mean?



Editing .bashrc in WSL safely


Where is .bashrc file located in WSL?What's the easiest way to run GUI apps on Windows Subsystem for Linux as of 2018?How to use win explorer to create folders for Bash on Ubuntu on Windows?Running gnome-keyring on WSL (Windows Subsystem for Linux)Ubuntu/ Windows Shared Folder (using WSL)How can I run services in WSLRunning gnome-software on WindowsUbuntu 19.04 installed into WSL “Windows System for Linux” on Win10 host - How? Will it run Graphics intensive programs?AWS on Ubuntu WSLWhy can I use my RSA keys with the Git Bash app but not with Ubuntu WSL on my Windows machine?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









2


















How do I edit .bashrc files in the Windows Subsystem for Linux safely?
https://devblogs.microsoft.com/commandline/do-not-change-linux-files-using-windows-apps-and-tools/



This article warns you to never edit files stored in the WSL appdata folder using Windows tools, but then how do you edit files like .bashrc in a safe manner?










share|improve this question

























  • Use the bash terminal to do edits via vim!

    – George Udosen
    Jun 4 at 8:56






  • 1





    @GeorgeUdosen you're advising a lifetime Windows user to use Vim? what kind of sadist are you? at least advise nano

    – tatsu
    Jun 4 at 9:28






  • 1





    @tatsu my appologies!

    – George Udosen
    Jun 4 at 9:50

















2


















How do I edit .bashrc files in the Windows Subsystem for Linux safely?
https://devblogs.microsoft.com/commandline/do-not-change-linux-files-using-windows-apps-and-tools/



This article warns you to never edit files stored in the WSL appdata folder using Windows tools, but then how do you edit files like .bashrc in a safe manner?










share|improve this question

























  • Use the bash terminal to do edits via vim!

    – George Udosen
    Jun 4 at 8:56






  • 1





    @GeorgeUdosen you're advising a lifetime Windows user to use Vim? what kind of sadist are you? at least advise nano

    – tatsu
    Jun 4 at 9:28






  • 1





    @tatsu my appologies!

    – George Udosen
    Jun 4 at 9:50













2













2









2








How do I edit .bashrc files in the Windows Subsystem for Linux safely?
https://devblogs.microsoft.com/commandline/do-not-change-linux-files-using-windows-apps-and-tools/



This article warns you to never edit files stored in the WSL appdata folder using Windows tools, but then how do you edit files like .bashrc in a safe manner?










share|improve this question














How do I edit .bashrc files in the Windows Subsystem for Linux safely?
https://devblogs.microsoft.com/commandline/do-not-change-linux-files-using-windows-apps-and-tools/



This article warns you to never edit files stored in the WSL appdata folder using Windows tools, but then how do you edit files like .bashrc in a safe manner?







bash bashrc windows-subsystem-for-linux






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jun 4 at 8:51









dokodoko

211 bronze badge




211 bronze badge















  • Use the bash terminal to do edits via vim!

    – George Udosen
    Jun 4 at 8:56






  • 1





    @GeorgeUdosen you're advising a lifetime Windows user to use Vim? what kind of sadist are you? at least advise nano

    – tatsu
    Jun 4 at 9:28






  • 1





    @tatsu my appologies!

    – George Udosen
    Jun 4 at 9:50

















  • Use the bash terminal to do edits via vim!

    – George Udosen
    Jun 4 at 8:56






  • 1





    @GeorgeUdosen you're advising a lifetime Windows user to use Vim? what kind of sadist are you? at least advise nano

    – tatsu
    Jun 4 at 9:28






  • 1





    @tatsu my appologies!

    – George Udosen
    Jun 4 at 9:50
















Use the bash terminal to do edits via vim!

– George Udosen
Jun 4 at 8:56





Use the bash terminal to do edits via vim!

– George Udosen
Jun 4 at 8:56




1




1





@GeorgeUdosen you're advising a lifetime Windows user to use Vim? what kind of sadist are you? at least advise nano

– tatsu
Jun 4 at 9:28





@GeorgeUdosen you're advising a lifetime Windows user to use Vim? what kind of sadist are you? at least advise nano

– tatsu
Jun 4 at 9:28




1




1





@tatsu my appologies!

– George Udosen
Jun 4 at 9:50





@tatsu my appologies!

– George Udosen
Jun 4 at 9:50










2 Answers
2






active

oldest

votes


















2



















Use the built-in Nano editor as



nano ~/.bashrc


A simple guide for using Nano can be found in the Gentoo Linux Wiki.






share|improve this answer



































    1



















    If you prefer a GUI editor then install VcXsrv as detailed here:



    • What's the easiest way to run GUI apps on Windows Subsystem for Linux as of 2018?

    Then use gedit ~/.bashrc






    share|improve this answer



























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "89"
      ;
      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/4.0/"u003ecc by-sa 4.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%2faskubuntu.com%2fquestions%2f1148468%2fediting-bashrc-in-wsl-safely%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown


























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2



















      Use the built-in Nano editor as



      nano ~/.bashrc


      A simple guide for using Nano can be found in the Gentoo Linux Wiki.






      share|improve this answer
































        2



















        Use the built-in Nano editor as



        nano ~/.bashrc


        A simple guide for using Nano can be found in the Gentoo Linux Wiki.






        share|improve this answer






























          2















          2











          2









          Use the built-in Nano editor as



          nano ~/.bashrc


          A simple guide for using Nano can be found in the Gentoo Linux Wiki.






          share|improve this answer
















          Use the built-in Nano editor as



          nano ~/.bashrc


          A simple guide for using Nano can be found in the Gentoo Linux Wiki.







          share|improve this answer















          share|improve this answer




          share|improve this answer








          edited Aug 13 at 14:03

























          answered Jun 4 at 8:55









          user3140225user3140225

          2,6334 gold badges11 silver badges24 bronze badges




          2,6334 gold badges11 silver badges24 bronze badges


























              1



















              If you prefer a GUI editor then install VcXsrv as detailed here:



              • What's the easiest way to run GUI apps on Windows Subsystem for Linux as of 2018?

              Then use gedit ~/.bashrc






              share|improve this answer






























                1



















                If you prefer a GUI editor then install VcXsrv as detailed here:



                • What's the easiest way to run GUI apps on Windows Subsystem for Linux as of 2018?

                Then use gedit ~/.bashrc






                share|improve this answer




























                  1















                  1











                  1









                  If you prefer a GUI editor then install VcXsrv as detailed here:



                  • What's the easiest way to run GUI apps on Windows Subsystem for Linux as of 2018?

                  Then use gedit ~/.bashrc






                  share|improve this answer














                  If you prefer a GUI editor then install VcXsrv as detailed here:



                  • What's the easiest way to run GUI apps on Windows Subsystem for Linux as of 2018?

                  Then use gedit ~/.bashrc







                  share|improve this answer













                  share|improve this answer




                  share|improve this answer










                  answered Jun 4 at 11:27









                  WinEunuuchs2UnixWinEunuuchs2Unix

                  64.8k18 gold badges124 silver badges240 bronze badges




                  64.8k18 gold badges124 silver badges240 bronze badges































                      draft saved

                      draft discarded















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • 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%2faskubuntu.com%2fquestions%2f1148468%2fediting-bashrc-in-wsl-safely%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

                      Tamil (spriik) Luke uk diar | Nawigatjuun

                      Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                      Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?