title: What is the difference between an executable and a shared library
body: <p>The properties of <code>ls</code>  show it is an  <code>executable</code>.</p>
  
  <p><a href="https://i.stack.imgur.com/P3aMT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P3aMT.jpg" alt="enter image description here"></a></p>
  
  <p>And properties of  <code>kmod</code>  show it is a  <code>shared library</code>.</p>
  
  <p><a href="https://i.stack.imgur.com/bdpCF.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bdpCF.jpg" alt="enter image description here"></a></p>
  
  <p>Im trying to check for <code>executables</code> and hash them in ubuntu 14.04 LTS. Is there any way to differentiate <code>executables</code> from the other types? Thanks in advance</p>