title: To show only file name without the entire directory path
body: <p><code>ls /home/user/new/*.txt</code> prints all txt files in that directory. However it prints the output as follows:</p>
  
  <pre><code>[me@comp]$ ls /home/user/new/*.txt
  /home/user/new/file1.txt    /home/user/new/file2.txt    /home/user/new/file3.txt
  </code></pre>
  
  <p>and so on.</p>
  
  <p>I want to run the <code>ls</code> command not from the <code>/home/user/new/</code> directory thus I have to give the full directory name, yet I want the output to be only as</p>
  
  <pre><code>[me@comp]$ ls /home/user/new/*.txt
  file1.txt    file2.txt    file3.txt 
  </code></pre>
  
  <p>I don't want the entire path. Only filename is needed. This issues has to be solved using ls command, as its output is meant for another program.</p>