mount --bind 能够镜像的把目录挂载到其他路径下
mount --bind //此命令可以把目录挂载到其他目录,有镜像功能,会占用两份同样大小的空间,当你umount的时候,所作的镜像会立马消失.
$ls
ftp tools
$cd ftp
$mkdir /home/ftp/tools
$cd tools
$pwd
/home/ftp/tools
$mount --bind /home/tools /home/ftp/tools
本文转自holy2009 51CTO博客,原文链接:http://blog.51cto.com/holy2010/405468