How to create a symbolic link for a Python code in Linux?

5

I want to run a simple Python code that I created from anywhere on my system.

I know that to do this with a shell script just run the command ln -s /home/user/script.sh/usb/ bin / script , however of knowing how to do the same with a "code.py".

    
asked by anonymous 03.11.2015 / 19:25

1 answer

4

It's the same:

ln -s /home/usuario/codigo.py /usb/bin/script
    
03.11.2015 / 19:26