
18 Jan
2016
18 Jan
'16
2:20 a.m.
Lev Lafayette via luv-main <luv-main@luv.asn.au> writes:
Note that the two directories have the same inode.
# ls -id /home/username/ 1081162059 /home/sanujig/
]# ls -id /data/user2/username 1081162059 /data/user2/username
Fascinating, eh?
Ok, going to respond to the easiest part first. That is actually expected behaviour for symlinks. Because you had a slash at the end of the directory, you dereference the symlink first, so you get the directory entry in both cases. % ln -s vpac vpac2 % ls -l vpac2 lrwxrwxrwx 1 brian brian 4 Jan 18 13:12 vpac2 -> vpac % ls -id vpac2/ 7476864 vpac2/ % ls -id vpac/ 7476864 vpac/ % ls -id vpac2 22807075 vpac2 -- Brian May <brian@linuxpenguins.xyz> https://linuxpenguins.xyz/brian/