符号链接复制目录层次结构 [英] symlink-copying a directory hierarchy

查看:106
本文介绍了符号链接复制目录层次结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Linux上复制目录层次结构以便在所有文件只是指向源层次结构上实际文件的符号链接的同时创建目录的新层次结构的最简单方法是什么?

What's the simplest way on Linux to "copy" a directory hierarchy so that a new hierarchy of directories are created while all "files" are just symlinks pointing back to the actual files on the source hierarchy?

cp -s 不能递归工作。

推荐答案

我在Google上搜索了一下,发现了一个名为 lns ,可从此处

I googled around a little bit and found a command called lns, available from here.

这篇关于符号链接复制目录层次结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆