how to identify hard link and softlink