Somewhere in my system (the problem is I don't know where) I have a symlink to which is given priority by
bash but the link is broken and therefore it doesn't work.
- current directory:
- somewhere in path (installed by a package):
mysymlink from current directory, the (broken) symlink
mysymlink somewhere in the file system is called.
I am trying to find that symlink, delete it so I can use the one in the current directory.
How do I find it?
(EDIT) CONCRETE EXAMPLE:
command -v testcafe
ls -l /usr/local/bin/testcafe
ls: cannot access /usr/local/bin/testcafe: No such file or directory
(Note: I removed myself the target path by mistake)
How to remove this symlink (somewhere in the system)?