Make executable symbolic link in Python?
<p>I have a file called <code>client.py</code>. I created a symbolic link called <code>incro</code> using </p>

<pre><code>ln -s client.py incro
</code></pre>

<p>How do I make this script executable and move it to my bin (I'm on Linux using Ubuntu, with a bash terminal), under the name of <code>incro</code>? So that I will be able to run</p>

<pre><code>incro
</code></pre>

<p>I have the proper sha-bang. What else do I need to do?</p>

<p>In Linux to make a file executable you will need to set the file with the following command:</p>

<pre><code>chmod +x [filename]
</code></pre>

<p>This will make the file executable to root, user, and group owners.</p>

<p>To make the file executable from any directory you will need to make sure that the directory is listed in your PATH. </p>

<pre><code>echo $PATH
</code></pre>

<p>will show you which path you should move your file or symbolic link to. There are also ways to add any path to the PATH but you will likely find convention to add your executables to /usr/local/bin. Just validate that it is in your path using the command above.</p>

python bash bin