快速移动目录树

由 徐永久 发表于 2005年11月27日 16:55。

本文提供一个通过 cpio 命令移动目录树的办法。
先生成目录树临时文件:

find . -depth -print | cpio -o -O /tmp/dir.cpio

然后进入目标目录,创建目录树:

cat /tmp/dir.cpio | cpio -id

相关文章

您可以 发表评论, 或者从您的网站trackback

发表评论

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image