title: Shell script to check whether the entered file name is a hidden file or not in RadHat Linux
body: <p>How do i create a script to check for the file is hidden or not?</p>
  <pre><code>#!/bin/bash
  FILE=&quot;$1&quot;
   
  if [ -f &quot;$FILE&quot; ];
  then
     echo &quot;File $FILE is not hidden.&quot;
  else
     echo &quot;File $FILE is hidden&quot; &gt;&amp;2
  fi
  </code></pre>
  <p>but it is unable to do so. Please help me.</p>