• 0 Posts
  • 1 Comment
Joined 10 days ago
cake
Cake day: February 14th, 2025

help-circle
  • LeninOnAPrayer@lemm.eetoLinux@lemmy.mlHappy with my bash progress!
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    8 days ago

    It makes it usable without typing bash. Same would apply for a python script. For example you can make a python script named with no extension and add #!/usr/bin/python to the top of the file. Bash shell sees this and knows to execute the script using that python path.

    Then you just include the directory in your $PATH and chmod +x the script. Then you can type $python_script instead of $python python_script.py