how to edit PATH in bashrc The 2019 Stack Overflow Developer Survey Results Are InScrewed up terminal after modifying bashrcProblem in .bashrcHow to install class bench using make all and bashrcNo files in /etc/skel/ ; Can't restore .bashrcTangoWithDjango .bashrc edit causing errorsPermanent PATH variablearm linux gcc compiling.. exported path in .bashrc doesn't work with sudo but it works with suPATH variable in different terminal windowsPut . ~/.bashrc and now prompts 2 files to edit indefinitelyAI Gym Installation, python path issue
What is the most effective way of iterating a std::vector and why?
Interpreting the 2019 New York Reproductive Health Act?
What is the accessibility of a package's `Private` context variables?
Is "plugging out" electronic devices an American expression?
Can you compress metal and what would be the consequences?
Feature engineering suggestion required
What does Linus Torvalds mean when he says that Git "never ever" tracks a file?
A poker game description that does not feel gimmicky
What is the meaning of Triage in Cybersec world?
What did it mean to "align" a radio?
How to manage monthly salary
Is flight data recorder erased after every flight?
Who coined the term "madman theory"?
Is this app Icon Browser Safe/Legit?
Did 3000BC Egyptians use meteoric iron weapons?
What is the closest word meaning "respect for time / mindful"
Right tool to dig six foot holes?
Can we generate random numbers using irrational numbers like π and e?
Why is the maximum length of OpenWrt’s root password 8 characters?
When should I buy a clipper card after flying to OAK?
What do the Banks children have against barley water?
Deal with toxic manager when you can't quit
Does coating your armor in silver add any effects?
Did Section 31 appear in Star Trek: The Next Generation?
how to edit PATH in bashrc
The 2019 Stack Overflow Developer Survey Results Are InScrewed up terminal after modifying bashrcProblem in .bashrcHow to install class bench using make all and bashrcNo files in /etc/skel/ ; Can't restore .bashrcTangoWithDjango .bashrc edit causing errorsPermanent PATH variablearm linux gcc compiling.. exported path in .bashrc doesn't work with sudo but it works with suPATH variable in different terminal windowsPut . ~/.bashrc and now prompts 2 files to edit indefinitelyAI Gym Installation, python path issue
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I edit PATH and just insted $PATH i write SPATH sooo I'm stock in login loop
and with root terminal try to login and edit PATH
so,
I don't know how to get bashrc with which command and how to edit PATH
bashrc paths
New contributor
add a comment |
I edit PATH and just insted $PATH i write SPATH sooo I'm stock in login loop
and with root terminal try to login and edit PATH
so,
I don't know how to get bashrc with which command and how to edit PATH
bashrc paths
New contributor
Can you boot into recovery mode - wiki.ubuntu.com/RecoveryMode
– DaveStSomeWhere
2 days ago
In my ubuntu, PATH is not set in .bashrc, but in .profile
– Jean-Marie
2 days ago
@jean-marie tnx
– Husen
2 days ago
add a comment |
I edit PATH and just insted $PATH i write SPATH sooo I'm stock in login loop
and with root terminal try to login and edit PATH
so,
I don't know how to get bashrc with which command and how to edit PATH
bashrc paths
New contributor
I edit PATH and just insted $PATH i write SPATH sooo I'm stock in login loop
and with root terminal try to login and edit PATH
so,
I don't know how to get bashrc with which command and how to edit PATH
bashrc paths
bashrc paths
New contributor
New contributor
New contributor
asked 2 days ago
HusenHusen
11
11
New contributor
New contributor
Can you boot into recovery mode - wiki.ubuntu.com/RecoveryMode
– DaveStSomeWhere
2 days ago
In my ubuntu, PATH is not set in .bashrc, but in .profile
– Jean-Marie
2 days ago
@jean-marie tnx
– Husen
2 days ago
add a comment |
Can you boot into recovery mode - wiki.ubuntu.com/RecoveryMode
– DaveStSomeWhere
2 days ago
In my ubuntu, PATH is not set in .bashrc, but in .profile
– Jean-Marie
2 days ago
@jean-marie tnx
– Husen
2 days ago
Can you boot into recovery mode - wiki.ubuntu.com/RecoveryMode
– DaveStSomeWhere
2 days ago
Can you boot into recovery mode - wiki.ubuntu.com/RecoveryMode
– DaveStSomeWhere
2 days ago
In my ubuntu, PATH is not set in .bashrc, but in .profile
– Jean-Marie
2 days ago
In my ubuntu, PATH is not set in .bashrc, but in .profile
– Jean-Marie
2 days ago
@jean-marie tnx
– Husen
2 days ago
@jean-marie tnx
– Husen
2 days ago
add a comment |
2 Answers
2
active
oldest
votes
You may know a few of these details, but I'm hoping to provide a list that will help you get through this.
.bashrc
is found in a user's home directory./home/usera/.bashrc
/root/.bashrc
$PATH
should beexport
'd for persistence and sub-shells.- You will likely only ADD to
$PATH
, and be careful not to reset it completely.
BADexport PATH="/less/important/path:/lesser/important/path"
GOODexport PATH="$PATH:/less/important/path:/lesser/important/path"
- The system will use the first found match, starting with directories on the left or beginning of the
$PATH
list.
If you find yourself with a really messed up configuration file, take a look at /etc/skel
, and either copy that over, or use it as a reference for this and other configuration files provided to new users.
add a comment |
Open root terminal(may be in recovery mode chosen at boot) and edit .bashrc with following command: replace "youruser" with actual user name
nano /home/youruser/.bashrc
Fix a typo and try to login as that user.
in step 2 i have to edit PATH in bashrc but there is not anything about PATH
– Husen
2 days ago
@Husen Do check bashrc of root as well if you are confident that you modified bashrc.
– Kulfy
2 days ago
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/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
);
);
Husen is a new contributor. Be nice, and check out our Code of Conduct.
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%2f1132247%2fhow-to-edit-path-in-bashrc%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
You may know a few of these details, but I'm hoping to provide a list that will help you get through this.
.bashrc
is found in a user's home directory./home/usera/.bashrc
/root/.bashrc
$PATH
should beexport
'd for persistence and sub-shells.- You will likely only ADD to
$PATH
, and be careful not to reset it completely.
BADexport PATH="/less/important/path:/lesser/important/path"
GOODexport PATH="$PATH:/less/important/path:/lesser/important/path"
- The system will use the first found match, starting with directories on the left or beginning of the
$PATH
list.
If you find yourself with a really messed up configuration file, take a look at /etc/skel
, and either copy that over, or use it as a reference for this and other configuration files provided to new users.
add a comment |
You may know a few of these details, but I'm hoping to provide a list that will help you get through this.
.bashrc
is found in a user's home directory./home/usera/.bashrc
/root/.bashrc
$PATH
should beexport
'd for persistence and sub-shells.- You will likely only ADD to
$PATH
, and be careful not to reset it completely.
BADexport PATH="/less/important/path:/lesser/important/path"
GOODexport PATH="$PATH:/less/important/path:/lesser/important/path"
- The system will use the first found match, starting with directories on the left or beginning of the
$PATH
list.
If you find yourself with a really messed up configuration file, take a look at /etc/skel
, and either copy that over, or use it as a reference for this and other configuration files provided to new users.
add a comment |
You may know a few of these details, but I'm hoping to provide a list that will help you get through this.
.bashrc
is found in a user's home directory./home/usera/.bashrc
/root/.bashrc
$PATH
should beexport
'd for persistence and sub-shells.- You will likely only ADD to
$PATH
, and be careful not to reset it completely.
BADexport PATH="/less/important/path:/lesser/important/path"
GOODexport PATH="$PATH:/less/important/path:/lesser/important/path"
- The system will use the first found match, starting with directories on the left or beginning of the
$PATH
list.
If you find yourself with a really messed up configuration file, take a look at /etc/skel
, and either copy that over, or use it as a reference for this and other configuration files provided to new users.
You may know a few of these details, but I'm hoping to provide a list that will help you get through this.
.bashrc
is found in a user's home directory./home/usera/.bashrc
/root/.bashrc
$PATH
should beexport
'd for persistence and sub-shells.- You will likely only ADD to
$PATH
, and be careful not to reset it completely.
BADexport PATH="/less/important/path:/lesser/important/path"
GOODexport PATH="$PATH:/less/important/path:/lesser/important/path"
- The system will use the first found match, starting with directories on the left or beginning of the
$PATH
list.
If you find yourself with a really messed up configuration file, take a look at /etc/skel
, and either copy that over, or use it as a reference for this and other configuration files provided to new users.
answered 2 days ago
earthmeLonearthmeLon
6,6881951
6,6881951
add a comment |
add a comment |
Open root terminal(may be in recovery mode chosen at boot) and edit .bashrc with following command: replace "youruser" with actual user name
nano /home/youruser/.bashrc
Fix a typo and try to login as that user.
in step 2 i have to edit PATH in bashrc but there is not anything about PATH
– Husen
2 days ago
@Husen Do check bashrc of root as well if you are confident that you modified bashrc.
– Kulfy
2 days ago
add a comment |
Open root terminal(may be in recovery mode chosen at boot) and edit .bashrc with following command: replace "youruser" with actual user name
nano /home/youruser/.bashrc
Fix a typo and try to login as that user.
in step 2 i have to edit PATH in bashrc but there is not anything about PATH
– Husen
2 days ago
@Husen Do check bashrc of root as well if you are confident that you modified bashrc.
– Kulfy
2 days ago
add a comment |
Open root terminal(may be in recovery mode chosen at boot) and edit .bashrc with following command: replace "youruser" with actual user name
nano /home/youruser/.bashrc
Fix a typo and try to login as that user.
Open root terminal(may be in recovery mode chosen at boot) and edit .bashrc with following command: replace "youruser" with actual user name
nano /home/youruser/.bashrc
Fix a typo and try to login as that user.
answered 2 days ago
LeonidMewLeonidMew
1,006622
1,006622
in step 2 i have to edit PATH in bashrc but there is not anything about PATH
– Husen
2 days ago
@Husen Do check bashrc of root as well if you are confident that you modified bashrc.
– Kulfy
2 days ago
add a comment |
in step 2 i have to edit PATH in bashrc but there is not anything about PATH
– Husen
2 days ago
@Husen Do check bashrc of root as well if you are confident that you modified bashrc.
– Kulfy
2 days ago
in step 2 i have to edit PATH in bashrc but there is not anything about PATH
– Husen
2 days ago
in step 2 i have to edit PATH in bashrc but there is not anything about PATH
– Husen
2 days ago
@Husen Do check bashrc of root as well if you are confident that you modified bashrc.
– Kulfy
2 days ago
@Husen Do check bashrc of root as well if you are confident that you modified bashrc.
– Kulfy
2 days ago
add a comment |
Husen is a new contributor. Be nice, and check out our Code of Conduct.
Husen is a new contributor. Be nice, and check out our Code of Conduct.
Husen is a new contributor. Be nice, and check out our Code of Conduct.
Husen is a new contributor. Be nice, and check out our Code of Conduct.
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%2f1132247%2fhow-to-edit-path-in-bashrc%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
Can you boot into recovery mode - wiki.ubuntu.com/RecoveryMode
– DaveStSomeWhere
2 days ago
In my ubuntu, PATH is not set in .bashrc, but in .profile
– Jean-Marie
2 days ago
@jean-marie tnx
– Husen
2 days ago