title: How to get the present working directory on Linux in Java
body: <p>I am invoking the command using a bash shell in Linux. This command completes its operation using a Java class. I want to retrieve the present working directory from where the command is invoked. When I am using <code>System.getProperty("user.dir")</code> I am getting the path from where the Java class is invoked. Can anyone help in this. </p>