script/command to fix broken symlinks?

If it doesn't relate to Debian, but you still want to share it, please do it here

script/command to fix broken symlinks?

Postby bester69 » 2021-01-02 04:24

Hi,

Its fourth time it happend to me.. i work in a folder with several subdirectories and drag and drop files among them creating symlinks...then, I move parent folder to other place and all symlinks gets broken cos they were created with absolute path (dolphin drag&drop synlink funtion).. I dont see this is very normal..

Anyways I would need something that update broken path symlinks recursively... just like "fixlinks parentfolder/"



Do you know about any scritpt or command line solution?

thanks.
bester69 wrote:You wont change my mind when I know Im right, Im not an ...
User avatar
bester69
 
Posts: 1867
Joined: 2015-04-02 13:15

Re: script/command to fix broken symlinks?

Postby Head_on_a_Stick » 2021-01-02 08:47

Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13450
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: script/command to fix broken symlinks?

Postby bester69 » 2021-01-02 20:10

Head_on_a_Stick wrote:https://packages.debian.org/buster/symlinks

Nice tool , I will keep it, thank you. :o Its helped me to fix them.
bester69 wrote:You wont change my mind when I know Im right, Im not an ...
User avatar
bester69
 
Posts: 1867
Joined: 2015-04-02 13:15


Return to Offtopic

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable