I want to resolve a symbolic link with the additional option to print the whole linkage. For example I want to run a command like readlink -f "symlink2" which reports each entry of the linkage. In other words if you would resolve the symbolic link "symlink2->symlink1->/path/file" then the result of command above is "/path/file" and I am lokking for a output like:
$readlink -f "symlink2
symlink1
/path/file