The Crane Has Landed


Bulk create symbolic links to directories
April 8, 2011, 6:45 pm
Filed under: Linux | Tags: ,

Since you can’t use the cp command to create links to directories, I found another site with a great use of the find command:

find path_to_the_directories_you_want_to_link_to -type f -exec ln -s \{\} . \;

This should create a symbolic link for each of the directories it finds in the path provided. Brilliant!




Follow

Get every new post delivered to your Inbox.