I have a python script let\'s name it script1.py. I can run it in the terminal this way:
python /path/script1.py ...
but I want to run like
You use a shebang line at the start of your script:
#!/usr/bin/env python
make the file executable:
chmod +x arbitraryname
and put it in a directory on your PATH (can be a symlink):
cd ~/bin/ ln -s ~/some/path/to/myscript/arbitraryname