ln: failed to create symbolic link : File exists

Viewed 9234

Can we create a symbolic link to existing directory?

Example: I want to create a symlink from /var/logs to /dump/logs (/dump/logs is exiting directory) if i do ln -s /var/logs /dump/logs i get below error

ln: failed to create symbolic link '/dump/logs': File exists

1 Answers

The existent one goes first before the link name:

ln -s /dump/logs /var/logs
Related