title: In Linux terminal, how to delete all files in a directory except one or two
body: <p>In a Linux terminal, how to delete all files from a folder except one or two?</p>
  
  <p>For example.</p>
  
  <p>I have <strong>100</strong> image files in a directory and one <strong><code>.txt</code></strong> file.
  I want to delete all files except that <strong><code>.txt</code></strong> file.</p>