Symbolic links
Creating symlinks (symbolic links)
If you want to symlink all file in a directory to an other directory:
$ln -s /path_to_source_directory/* /path_to_destination_directory/
Dealing with broken symlinks
Find broken symlinks and delete them
$find -L /path/to/check -type l -delete
List them
$find -L /path -type l
If you want to delete them with confirmation first, do
$find -L /path -type l -exec rm -i {} +
Creating symlinks
First cd into your directory and then indicate where your symlinks will point
$find /directory_where_yout_symlinks_are/ -maxdepth 1 -type d -exec ln -s {} \;
If you want to update your existing symlinks, use the -f option such as:
$find /home/matt/workspace/unified_repos/erp_core/modules/ -maxdepth 1 -type d -exec ln -sf {} \;
Comments
Comments powered by Disqus