FG

How do I move a linked file on Unix?

Fresh3 days ago
Mar 15, 20267830 views
Confidence Score0%
0%

Problem

I have a bunch of files in one directory and links to each one of those files in another directory. So looks something like this: Now I want to move those linked files from to . If I do that my simply calling , links will break. I don't want to re-link each file separately, cause there are hundreds…

Error Output

lrwxrwxrwx 1 rembol rembol   89 Jan 25 10:00 copyright.txt -> /home/rembol/solr/target/deploy/data/core/copyright.txt
lrwxrwxrwx 1 rembol rembol   92…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I move a linked file on Unix?

Low Risk

The short version is that can't do this. You'll need to retarget the links on your own. I was going to offer a suggestion on how to do this, but there's already a really good answer to a similar question posted over on the Unix/Linux site.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment