title: How to get the absolute path for a given relative path programmatically in Linux?
body: <p>How to get the absolute path for a given relative path programmatically in Linux?</p>
  
  <p>Incase of Windows we have the <code>_fullpath()</code> API. In other words, I mean what is analogous API to <code>_fullpath</code> of Windows in Linux?</p>