FG
💻 Software

Batch Update Symbolic Links Recursively

Fresh7 days ago
Mar 15, 202615309 views
Confidence Score0%
0%

Problem

I have a web app that has a bunch of symbolic links in subdirectories throughout it. I need to move the app to another directory structure, and I need to update all the symlinks to point to the new path. For example: Old Dir: New Dir: Old Symlink: New Symlink: The problem is that there's a lot of t…

Error Output

/home/user/public_html/dev

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Batch Update Symbolic Links Recursively

Low Risk

This bash command should do it for you: It uses to identify all files in the directory that are symbolic links with a target that's in the directory, and for each one, it prints out a bash command that will replace the link with a link to the equiva…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment