how to edit PATH in bashrcScrewed 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

Ideas for 3rd eye abilities

Crop image to path created in TikZ?

Is it legal to have the "// (c) 2019 John Smith" header in all files when there are hundreds of contributors?

What is the command to reset a PC without deleting any files

Does a dangling wire really electrocute me if I'm standing in water?

Why is my log file so massive? 22gb. I am running log backups

If a centaur druid Wild Shapes into a Giant Elk, do their Charge features stack?

Where to refill my bottle in India?

Why do UK politicians seemingly ignore opinion polls on Brexit?

How can I fix this gap between bookcases I made?

"listening to me about as much as you're listening to this pole here"

Are white and non-white police officers equally likely to kill black suspects?

Is there a familial term for apples and pears?

Lied on resume at previous job

When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?

Pristine Bit Checking

What is the meaning of "of trouble" in the following sentence?

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

What is GPS' 19 year rollover and does it present a cybersecurity issue?

Why doesn't a const reference extend the life of a temporary object passed via a function?

Prime joint compound before latex paint?

Is "plugging out" electronic devices an American expression?

How to manage monthly salary

Calculate Levenshtein distance between two strings in Python



how to edit PATH in bashrc


Screwed 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;








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










share|improve this question







New contributor




Husen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Can you boot into recovery mode - wiki.ubuntu.com/RecoveryMode

    – DaveStSomeWhere
    6 hours ago











  • In my ubuntu, PATH is not set in .bashrc, but in .profile

    – Jean-Marie
    5 hours ago











  • @jean-marie tnx

    – Husen
    5 hours ago

















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










share|improve this question







New contributor




Husen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Can you boot into recovery mode - wiki.ubuntu.com/RecoveryMode

    – DaveStSomeWhere
    6 hours ago











  • In my ubuntu, PATH is not set in .bashrc, but in .profile

    – Jean-Marie
    5 hours ago











  • @jean-marie tnx

    – Husen
    5 hours ago













0












0








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










share|improve this question







New contributor




Husen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












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






share|improve this question







New contributor




Husen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Husen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Husen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 7 hours ago









HusenHusen

11




11




New contributor




Husen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Husen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Husen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Can you boot into recovery mode - wiki.ubuntu.com/RecoveryMode

    – DaveStSomeWhere
    6 hours ago











  • In my ubuntu, PATH is not set in .bashrc, but in .profile

    – Jean-Marie
    5 hours ago











  • @jean-marie tnx

    – Husen
    5 hours ago

















  • Can you boot into recovery mode - wiki.ubuntu.com/RecoveryMode

    – DaveStSomeWhere
    6 hours ago











  • In my ubuntu, PATH is not set in .bashrc, but in .profile

    – Jean-Marie
    5 hours ago











  • @jean-marie tnx

    – Husen
    5 hours ago
















Can you boot into recovery mode - wiki.ubuntu.com/RecoveryMode

– DaveStSomeWhere
6 hours ago





Can you boot into recovery mode - wiki.ubuntu.com/RecoveryMode

– DaveStSomeWhere
6 hours ago













In my ubuntu, PATH is not set in .bashrc, but in .profile

– Jean-Marie
5 hours ago





In my ubuntu, PATH is not set in .bashrc, but in .profile

– Jean-Marie
5 hours ago













@jean-marie tnx

– Husen
5 hours ago





@jean-marie tnx

– Husen
5 hours ago










2 Answers
2






active

oldest

votes


















2














You may know a few of these details, but I'm hoping to provide a list that will help you get through this.




  1. .bashrc is found in a user's home directory.

    • /home/usera/.bashrc

    • /root/.bashrc



  2. $PATH should be export'd for persistence and sub-shells.

  3. You will likely only ADD to $PATH, and be careful not to reset it completely.


    • BAD export PATH="/less/important/path:/lesser/important/path"


    • GOOD export PATH="$PATH:/less/important/path:/lesser/important/path"


  4. 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.






share|improve this answer






























    0














    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.






    share|improve this answer























    • in step 2 i have to edit PATH in bashrc but there is not anything about PATH

      – Husen
      6 hours ago











    • @Husen Do check bashrc of root as well if you are confident that you modified bashrc.

      – Kulfy
      6 hours ago











    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.









    draft saved

    draft discarded


















    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









    2














    You may know a few of these details, but I'm hoping to provide a list that will help you get through this.




    1. .bashrc is found in a user's home directory.

      • /home/usera/.bashrc

      • /root/.bashrc



    2. $PATH should be export'd for persistence and sub-shells.

    3. You will likely only ADD to $PATH, and be careful not to reset it completely.


      • BAD export PATH="/less/important/path:/lesser/important/path"


      • GOOD export PATH="$PATH:/less/important/path:/lesser/important/path"


    4. 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.






    share|improve this answer



























      2














      You may know a few of these details, but I'm hoping to provide a list that will help you get through this.




      1. .bashrc is found in a user's home directory.

        • /home/usera/.bashrc

        • /root/.bashrc



      2. $PATH should be export'd for persistence and sub-shells.

      3. You will likely only ADD to $PATH, and be careful not to reset it completely.


        • BAD export PATH="/less/important/path:/lesser/important/path"


        • GOOD export PATH="$PATH:/less/important/path:/lesser/important/path"


      4. 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.






      share|improve this answer

























        2












        2








        2







        You may know a few of these details, but I'm hoping to provide a list that will help you get through this.




        1. .bashrc is found in a user's home directory.

          • /home/usera/.bashrc

          • /root/.bashrc



        2. $PATH should be export'd for persistence and sub-shells.

        3. You will likely only ADD to $PATH, and be careful not to reset it completely.


          • BAD export PATH="/less/important/path:/lesser/important/path"


          • GOOD export PATH="$PATH:/less/important/path:/lesser/important/path"


        4. 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.






        share|improve this answer













        You may know a few of these details, but I'm hoping to provide a list that will help you get through this.




        1. .bashrc is found in a user's home directory.

          • /home/usera/.bashrc

          • /root/.bashrc



        2. $PATH should be export'd for persistence and sub-shells.

        3. You will likely only ADD to $PATH, and be careful not to reset it completely.


          • BAD export PATH="/less/important/path:/lesser/important/path"


          • GOOD export PATH="$PATH:/less/important/path:/lesser/important/path"


        4. 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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 6 hours ago









        earthmeLonearthmeLon

        6,6681951




        6,6681951























            0














            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.






            share|improve this answer























            • in step 2 i have to edit PATH in bashrc but there is not anything about PATH

              – Husen
              6 hours ago











            • @Husen Do check bashrc of root as well if you are confident that you modified bashrc.

              – Kulfy
              6 hours ago















            0














            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.






            share|improve this answer























            • in step 2 i have to edit PATH in bashrc but there is not anything about PATH

              – Husen
              6 hours ago











            • @Husen Do check bashrc of root as well if you are confident that you modified bashrc.

              – Kulfy
              6 hours ago













            0












            0








            0







            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.






            share|improve this answer













            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.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 6 hours ago









            LeonidMewLeonidMew

            998620




            998620












            • in step 2 i have to edit PATH in bashrc but there is not anything about PATH

              – Husen
              6 hours ago











            • @Husen Do check bashrc of root as well if you are confident that you modified bashrc.

              – Kulfy
              6 hours ago

















            • in step 2 i have to edit PATH in bashrc but there is not anything about PATH

              – Husen
              6 hours ago











            • @Husen Do check bashrc of root as well if you are confident that you modified bashrc.

              – Kulfy
              6 hours ago
















            in step 2 i have to edit PATH in bashrc but there is not anything about PATH

            – Husen
            6 hours ago





            in step 2 i have to edit PATH in bashrc but there is not anything about PATH

            – Husen
            6 hours ago













            @Husen Do check bashrc of root as well if you are confident that you modified bashrc.

            – Kulfy
            6 hours ago





            @Husen Do check bashrc of root as well if you are confident that you modified bashrc.

            – Kulfy
            6 hours ago










            Husen is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            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.




            draft saved


            draft discarded














            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





















































            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

            Are there any comparative studies done between Ashtavakra Gita and Buddhim?How is it wrong to believe that a self exists, or that it doesn't?Can you criticise or improve Ven. Bodhi's description of MahayanaWas the doctrine of 'Anatta', accepted as doctrine by modern Buddhism, actually taught by the Buddha?Relationship between Buddhism, Hinduism and Yoga?Comparison of Nirvana, Tao and Brahman/AtmaIs there a distinction between “ego identity” and “craving/hating”?Are there many differences between Taoism and Buddhism?Loss of “faith” in buddhismSimilarity between creation in Abrahamic religions and beginning of life in Earth mentioned Agganna Sutta?Are there studies about the difference between meditating in the morning versus in the evening?Can one follow Hinduism and Buddhism at the same time?Are there any prohibitions on participating in other religion's practices?Psychology of 'flow'

            What to do with chalk when deepwater soloing? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Photo Competition: April - At Home in The Great OutdoorsIs it ok for my climbing shoes/chalk bag to get wet?What hand and finger exercises help with climbing?Chalk: pure, plus drying agent, liquid?What can I do with a retired rope and harness?What to do with the lap coiled rope if the belayer wishes to lead consecutive pitches?How do to a safety knot when abseiling with 2 ropes?What are the advantages of being short when climbing?When should you start to train with Campus Boards, Hang Boards and Peg Boards?Climbing: fear/panic on boulder wallWith what specific techniques are various bouldering grades associated?What are the most important numerical features to look for when comparing climbing ropes?

            How to start Thunderbird minimized on start-up?How to run Thunderbird on startup, minimised?How to make Thunderbird Mail runs at startup?How do I start applications automatically on login?How can I delay a specific program on startup?How do I hide Thunderbird from the launcher while running?How to keep Thunderbird and Pidgin running on background?How to open Thunderbird minimised at startup in Ubuntu 16.04How to start Thunderbird minimized to Unity system tray on start-up?Minimize Thunderbird to Traythunderbird script to disable option: “delete message on server”Why is Thunderbird pegging a core at 100%?Thunderbird resets profile after second start upClearing out Thunderbird on UbuntuThunderbird and a shared “home” partitionBidirectionally synchronize Thunderbird profiles (POP3 mail accounts) between two computersWhy doesn't Ubuntu/Thunderbird save my PGP key?How to start Thunderbird minimized to Unity system tray on start-up?Recovering thunderbird files from quick formatted drive?