how to make a bash alias to a script in folder [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:



  • In Bash, when to alias, when to script, and when to write a function?

    14 answers



i have a pyton script that execute with python script.py when you are in the same folder.



I want to know if it's possible to make a bash alias like alias script='command' to execute the script also when you are outside the same folder than the script?



thx







share|improve this question












marked as duplicate by l0b0, Jeff Schaller, Isaac, Kiwy, Archemar Apr 11 at 7:50


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:



    • In Bash, when to alias, when to script, and when to write a function?

      14 answers



    i have a pyton script that execute with python script.py when you are in the same folder.



    I want to know if it's possible to make a bash alias like alias script='command' to execute the script also when you are outside the same folder than the script?



    thx







    share|improve this question












    marked as duplicate by l0b0, Jeff Schaller, Isaac, Kiwy, Archemar Apr 11 at 7:50


    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:



      • In Bash, when to alias, when to script, and when to write a function?

        14 answers



      i have a pyton script that execute with python script.py when you are in the same folder.



      I want to know if it's possible to make a bash alias like alias script='command' to execute the script also when you are outside the same folder than the script?



      thx







      share|improve this question













      This question already has an answer here:



      • In Bash, when to alias, when to script, and when to write a function?

        14 answers



      i have a pyton script that execute with python script.py when you are in the same folder.



      I want to know if it's possible to make a bash alias like alias script='command' to execute the script also when you are outside the same folder than the script?



      thx





      This question already has an answer here:



      • In Bash, when to alias, when to script, and when to write a function?

        14 answers









      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 10 at 17:09









      Gy0m

      814




      814




      marked as duplicate by l0b0, Jeff Schaller, Isaac, Kiwy, Archemar Apr 11 at 7:50


      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 l0b0, Jeff Schaller, Isaac, Kiwy, Archemar Apr 11 at 7:50


      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
          0
          down vote













          I find it by myself you just have to make an alias like this :



          alias script="python /home/name/folder/script.py"


          and that's all.






          share|improve this answer





























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            I find it by myself you just have to make an alias like this :



            alias script="python /home/name/folder/script.py"


            and that's all.






            share|improve this answer


























              up vote
              0
              down vote













              I find it by myself you just have to make an alias like this :



              alias script="python /home/name/folder/script.py"


              and that's all.






              share|improve this answer
























                up vote
                0
                down vote










                up vote
                0
                down vote









                I find it by myself you just have to make an alias like this :



                alias script="python /home/name/folder/script.py"


                and that's all.






                share|improve this answer














                I find it by myself you just have to make an alias like this :



                alias script="python /home/name/folder/script.py"


                and that's all.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Apr 10 at 18:49









                Tomasz

                8,04052560




                8,04052560










                answered Apr 10 at 17:22









                Gy0m

                814




                814












                    Popular posts from this blog

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

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay