Suppose I have the following configuration:
- Folder A
- file1
- file2
I then create a soft link of Folder A as follows: ln -s A B
so that we now have:
- Folder A
- file1
- file2
- Folder B ( symlink of Folder A (softlink) )
- file1
- file2
Now when I change B/file1
, that change propogates to A/file1
. However, it appears that - when using ls -l
in B
- that B/file1
and B/file2
are not soft linked to A/file1
and A/file2
! What is going on?
Question: Is it true that B/file1
is hard linked to A/file1
? Another way of asking this: is it true that when you soft link a directory, that its subfiles become hard links to the subfiles of the original directory? Is there a way to make everything a soft link?