i just created the symlink sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
and am wondering how i get rid of it if I wanted to. How would i do this?
The symbolic link does not contain any data, but you can perform all operations on the symbolic link file. Removing a symbolic link does not delete the original file, but deleting a file makes the symlink a dangling link.
Note that removing a symbolic link does not affect the file it points to. Before removing a file, you can verify whether it is a symbolic link using the ls -l command. It will also show you the file or directory that it points to. The l in permissions (lrwxrwxrwx) confirms that it's a symbolic link.
To delete a symbolic link, treat it like any other directory or file. If you created a symbolic link using the command shown above, move to the root directory since it is "\Docs" and use the rmdir command. If you created a symbolic link (<SYMLINK>) of a file, to delete a symbolic link use the del command.
Remove it just like you would any other file: rm /usr/lib/libmysqlclient.18.dylib
. rm will remove the symlink itself, not the file the link is pointing at.
You could also use the unlink command: unlink /path/to/sym/link
I believe just deleting the file within Finder works fine also, it will have a little shortcut icon on it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With