Can I symlink multiple directories into one?

前端 未结 3 1335
温柔的废话
温柔的废话 2020-12-28 13:50

I have a feeling that I already know the answer to this one, but I thought I\'d check.

I have a number of different folders:

images_a/
images_b/
imag         


        
3条回答
  •  爱一瞬间的悲伤
    2020-12-28 14:12

    to add on to paxdiablo 's great answer, i think you could use cp -s
    (-s or --symbolic-link) which makes symbolic links instead of literal copying

    to maybe speed up or simplify the the bulk adding of symlinks to the "merge" folder A , of the files from folder B and C.

    (i have not tested this though)

    I cant recall of the top of my head, but im sure there is some option for CP to NOT overwrite existing, thus only symlinks of new files will be "cp -s" ed

提交回复
热议问题