title: How to get full path of a file?
body: <p>Is there an easy way I can print the full path of <code>file.txt</code> ?</p>
  
  <pre><code>file.txt = /nfs/an/disks/jj/home/dir/file.txt
  </code></pre>
  
  <p>The <code>&lt;command&gt;</code> </p>
  
  <pre><code>dir&gt; &lt;command&gt; file.txt  
  </code></pre>
  
  <p>should print</p>
  
  <pre><code>/nfs/an/disks/jj/home/dir/file.txt
  </code></pre>