Skip to main content
2 of 3
edited title
BillMan
  • 363
  • 1
  • 3
  • 6

How to verify the target of a symbolic link points toward a particular path

Within a bash script, I know I can check if a file is a symbolic link with the following syntax

if [ -L $path ]

Does any one know how I would test if that path was linked to a particular path?

BillMan
  • 363
  • 1
  • 3
  • 6