title: Bash script not running
body: <p>I am trying to learn bash scripting and I'm using Ubuntu Linux. I have written a simple Bash file to count the number of files in current directory. I have written the following script in a file:</p>
  
  <pre><code>#! /bin/bash
  
  ls -1 | wc -l  
  </code></pre>
  
  <p>And saved the file with the name <code>countFile</code>.</p>
  
  <p>But when I am trying to execute the script using <code>./countFile</code> it is not executing. It shows the following error:</p>
  
  <pre><code>bash: ./countFile: Permission denied  
  </code></pre>
  
  <p>The <code>countFile</code> is in my home directory so why I haven't the permission. Am I doing something wrong or missing some important thing? Moreover, the <code>ls -1 | wc -l</code> command gives me the correct output when I run it from the terminal.<br>
  So how can I run the <code>countFile</code> script?</p>