linux check symlink type code example Example 1: bash ls show link ls -la | grep "\->" Example 2: show symlink readlink -f symlinkName