file path in linux code example
Example 1: get full path of files in directory linux command
ls | xargs readlink -f
Example 2: java file path linux
Scanner s = new Scanner(new File("/home/me/java/ex.txt"));
ls | xargs readlink -f
Scanner s = new Scanner(new File("/home/me/java/ex.txt"));