For example, I have a file myold_file
. Then I use ln
to create a hard link as mylink
:
ln myold_file mylink
Then, even by using ls -a
, I cannot tell which is the old one.
Is there anyway to tell?
filesystemshard link
For example, I have a file myold_file
. Then I use ln
to create a hard link as mylink
:
ln myold_file mylink
Then, even by using ls -a
, I cannot tell which is the old one.
Is there anyway to tell?
Best Answer
You can't, because they are literally the same file, only reached by different paths. The first one has no special status.