I am confused. Linux filesystem is a tree structure, with the root node(starting node) as the root directory.
Now let's suppose I have a folder abc
at location /home/abc
and another folder xyz
at location /home/xyz
Folder xyz
consists of some other folders and files inside it. (ex def
and mno
are folders inside it)
/
├── home/
│ ├── abc
│ └── xyz
│ ├── def
│ └── mno
When I run the command
mount --rbind /home/xyz /home/abc
(rbind is recursively bind)
I see all the contents of the folder xyz
in abc
.
Now, when I just run the command
mount --bind /home/xyz /home/abc
I still see all the contents of xyz
in abc
.
Why is that?
--bind
to work just as similarly to --rbind
.