How to create a symlink to a Python code on Linux?

Question:

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/usuario/script.sh /usb/bin/script , but I would like to know how to do the same with a "code.py".

Answer:

Equals:

ln -s /home/usuario/codigo.py /usb/bin/script
Scroll to Top