check home directory in linux code example
Example 1: user.home linux
System.getProperty("user.home")
Example 2: how to open directory in linux using command
Just use "open [path_to_dir]" in Unix or "start [path_to_dir]" in Windows as:
open . #Open current directdory in Unix
start . #Open current directory in Windows