When should I use .bashrc and when .profile?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I am basically putting all my settings into my .bashrc and when I was using zsh it was all in my .zshrc.



The Rust installer just informed me that it has added the new installation to my PATH by modifying .profile.



When should things go into ~/.profile?



Is it only doing that because it doesn't know which shell I am using or should all somewhat general settings be in .profile?










share|improve this question

























    up vote
    0
    down vote

    favorite












    I am basically putting all my settings into my .bashrc and when I was using zsh it was all in my .zshrc.



    The Rust installer just informed me that it has added the new installation to my PATH by modifying .profile.



    When should things go into ~/.profile?



    Is it only doing that because it doesn't know which shell I am using or should all somewhat general settings be in .profile?










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am basically putting all my settings into my .bashrc and when I was using zsh it was all in my .zshrc.



      The Rust installer just informed me that it has added the new installation to my PATH by modifying .profile.



      When should things go into ~/.profile?



      Is it only doing that because it doesn't know which shell I am using or should all somewhat general settings be in .profile?










      share|improve this question













      I am basically putting all my settings into my .bashrc and when I was using zsh it was all in my .zshrc.



      The Rust installer just informed me that it has added the new installation to my PATH by modifying .profile.



      When should things go into ~/.profile?



      Is it only doing that because it doesn't know which shell I am using or should all somewhat general settings be in .profile?







      bashrc






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 12 mins ago









      Franklin

      1253




      1253




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          .profile is read by every login shell, .xxxrc is read by every interactive shell after reading .profile.



          You need to decide yourself depending on what you like to add.





          share




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476593%2fwhen-should-i-use-bashrc-and-when-profile%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            .profile is read by every login shell, .xxxrc is read by every interactive shell after reading .profile.



            You need to decide yourself depending on what you like to add.





            share
























              up vote
              0
              down vote













              .profile is read by every login shell, .xxxrc is read by every interactive shell after reading .profile.



              You need to decide yourself depending on what you like to add.





              share






















                up vote
                0
                down vote










                up vote
                0
                down vote









                .profile is read by every login shell, .xxxrc is read by every interactive shell after reading .profile.



                You need to decide yourself depending on what you like to add.





                share












                .profile is read by every login shell, .xxxrc is read by every interactive shell after reading .profile.



                You need to decide yourself depending on what you like to add.






                share











                share


                share










                answered 7 mins ago









                schily

                10k31641




                10k31641



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476593%2fwhen-should-i-use-bashrc-and-when-profile%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Peggy Mitchell

                    Palaiologos

                    The Forum (Inglewood, California)