Linux mount 命令
Mount Bind
bind mount 之前
mount --bind dir1 dir2
之后, dir2中的文件消失了
dir2或者dir1中创建文件 dir1 和 dir2中都有
取消挂载之后,之前创建的文件只有dir1中有
mount tmpfs
mount -t tmpfs -o size=20m tmpfs tmpfs
将tmpfs bind挂载到dir2上
然后取消tmpfs的挂载,之前在tmpfs中创建的文件 tmpfs.txt 还存在
取消dir2的挂载 tmpfs.txt都消失