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;
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
add a comment
|
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
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 advisenano
– tatsu
Jun 4 at 9:28
1
@tatsu my appologies!
– George Udosen
Jun 4 at 9:50
add a comment
|
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
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
bash bashrc windows-subsystem-for-linux
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 advisenano
– tatsu
Jun 4 at 9:28
1
@tatsu my appologies!
– George Udosen
Jun 4 at 9:50
add a comment
|
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 advisenano
– 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
add a comment
|
2 Answers
2
active
oldest
votes
Use the built-in Nano editor as
nano ~/.bashrc
A simple guide for using Nano can be found in the Gentoo Linux Wiki.
add a comment
|
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
add a comment
|
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Use the built-in Nano editor as
nano ~/.bashrc
A simple guide for using Nano can be found in the Gentoo Linux Wiki.
add a comment
|
Use the built-in Nano editor as
nano ~/.bashrc
A simple guide for using Nano can be found in the Gentoo Linux Wiki.
add a comment
|
Use the built-in Nano editor as
nano ~/.bashrc
A simple guide for using Nano can be found in the Gentoo Linux Wiki.
Use the built-in Nano editor as
nano ~/.bashrc
A simple guide for using Nano can be found in the Gentoo Linux Wiki.
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
add a comment
|
add a comment
|
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
add a comment
|
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
add a comment
|
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
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
answered Jun 4 at 11:27
WinEunuuchs2UnixWinEunuuchs2Unix
64.8k18 gold badges124 silver badges240 bronze badges
64.8k18 gold badges124 silver badges240 bronze badges
add a comment
|
add a comment
|
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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