title: How to create symlinks to multiple directories at once with shell command
body: <p>I have an htaccess file that I want to create a symlink for in about 60 other directories. How can I do this in one line, instead of doing it over and over 60 times?</p>
  
  <p>Example: <code>.htaccess</code> file is located in directory <code>public_html/directory/website_1/</code></p>
  
  <p>I want to create a symlink of it in:</p>
  
  <pre><code>public_html/directory/website_2/
  public_html/directory/website_3/
  public_html/directory/website_4/
  public_html/directory/website_5/
  </code></pre>
  
  <p>But the directories are not numbered like that. Just using that as an example. All of the directories I want to copy the symlink into are in one main directory called <code>public_html/directory/</code> where <code>website_1 and website_2</code> etc reside.</p>
  
  <p>etc etc</p>
  
  <p>I'm using PuTTY.</p>
  
  <p>and this is how I am currently creating symlinks.</p>
  
  <pre><code>ln -s ~/public_html/directory/website_1/.htaccess ./website_2/.htaccess
  </code></pre>
  
  <p>Then I have to redo this same line but change the <code>website_2</code> to <code>website_3</code> and so on 60 times.</p>