title: How to define same path in all machins in Ubuntu using javascript for protractor
body: <p>I want to define same path in Ubuntu like in Windows(User.dir)
  so want is the soulution</p>
  
  <p>currently am using like :</p>
  
  <pre><code>projectpath="/home/local/NEXTEDUCATION/**anandgoudp**/workspace/NextErp
  </code></pre>
  
  <p>which is a static, in place of <strong><code>anandgoudp</code></strong> i want to get the user name in which meching i have logged in.</p>