What is `. command` means and how it works in Linux? [duplicate]

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











up vote
0
down vote

favorite













This question already has an answer here:



  • What's the meaning of a dot before a command in shell?

    3 answers



Example
when start a Virtualenv of python. It will need to type . someenv/bin/activate. However, even if it works fine, I still a little bit confuse about how it works.



Is there anyone who can give me a explanation in more general view about . command in shell?







share|improve this question













marked as duplicate by steeldriver, muru, Stephen Kitt, JdeBP, Vlastimil Jun 14 at 11:40


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















    up vote
    0
    down vote

    favorite













    This question already has an answer here:



    • What's the meaning of a dot before a command in shell?

      3 answers



    Example
    when start a Virtualenv of python. It will need to type . someenv/bin/activate. However, even if it works fine, I still a little bit confuse about how it works.



    Is there anyone who can give me a explanation in more general view about . command in shell?







    share|improve this question













    marked as duplicate by steeldriver, muru, Stephen Kitt, JdeBP, Vlastimil Jun 14 at 11:40


    This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite












      This question already has an answer here:



      • What's the meaning of a dot before a command in shell?

        3 answers



      Example
      when start a Virtualenv of python. It will need to type . someenv/bin/activate. However, even if it works fine, I still a little bit confuse about how it works.



      Is there anyone who can give me a explanation in more general view about . command in shell?







      share|improve this question














      This question already has an answer here:



      • What's the meaning of a dot before a command in shell?

        3 answers



      Example
      when start a Virtualenv of python. It will need to type . someenv/bin/activate. However, even if it works fine, I still a little bit confuse about how it works.



      Is there anyone who can give me a explanation in more general view about . command in shell?





      This question already has an answer here:



      • What's the meaning of a dot before a command in shell?

        3 answers









      share|improve this question












      share|improve this question




      share|improve this question








      edited Jun 14 at 11:40









      Vlastimil

      6,2511146116




      6,2511146116









      asked Jun 14 at 11:35









      pah8J

      1607




      1607




      marked as duplicate by steeldriver, muru, Stephen Kitt, JdeBP, Vlastimil Jun 14 at 11:40


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






      marked as duplicate by steeldriver, muru, Stephen Kitt, JdeBP, Vlastimil Jun 14 at 11:40


      This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          . is a synonym to source in bash. To sum up, it executes a script within the current shell, instead of executing it in a subshell. This means that anything changed in the environment by the script will persist in the shell after the script has ended.



          Have a look at this question, which is basically the same as yours : What's the meaning of a dot before a command in shell?






          share|improve this answer




























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote



            accepted










            . is a synonym to source in bash. To sum up, it executes a script within the current shell, instead of executing it in a subshell. This means that anything changed in the environment by the script will persist in the shell after the script has ended.



            Have a look at this question, which is basically the same as yours : What's the meaning of a dot before a command in shell?






            share|improve this answer

























              up vote
              2
              down vote



              accepted










              . is a synonym to source in bash. To sum up, it executes a script within the current shell, instead of executing it in a subshell. This means that anything changed in the environment by the script will persist in the shell after the script has ended.



              Have a look at this question, which is basically the same as yours : What's the meaning of a dot before a command in shell?






              share|improve this answer























                up vote
                2
                down vote



                accepted







                up vote
                2
                down vote



                accepted






                . is a synonym to source in bash. To sum up, it executes a script within the current shell, instead of executing it in a subshell. This means that anything changed in the environment by the script will persist in the shell after the script has ended.



                Have a look at this question, which is basically the same as yours : What's the meaning of a dot before a command in shell?






                share|improve this answer













                . is a synonym to source in bash. To sum up, it executes a script within the current shell, instead of executing it in a subshell. This means that anything changed in the environment by the script will persist in the shell after the script has ended.



                Have a look at this question, which is basically the same as yours : What's the meaning of a dot before a command in shell?







                share|improve this answer













                share|improve this answer



                share|improve this answer











                answered Jun 14 at 11:40









                Vince

                1213




                1213












                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?