title: what does "ls -t | head -n 1" in linux do?
body: <p>Could someone explain to me what line before <code>fi</code> does?</p>
  
  <pre><code>if [ -f $fname ] 
  then 
      echo "File already exists"; 
  else 
      touch $fname; 
      echo "File has been created"; 
      ls -t | head -n 1; 
  fi 
  </code></pre>