user3694351
user3694351

Reputation: 1

Inode number shows same in soft link

When I create soft link for directory,after that I check inode number its show me same when I check in following pattern,why it show me same?

mkdir /focus
ln -s /focus /tmp/focus1
ls -lid /focus/ -> eg.1122
ls -lid /tmp/focus1/ -> 1122
Its same but I check like as follow it show differ
ls -lid /tmp/focus1
what is difference between /tmp/focus1/ and /tmp/focus1 

Upvotes: 0

Views: 130

Answers (1)

William Pursell
William Pursell

Reputation: 212464

When you include a trailing /, ls is listing the contents of the directory. When you do not, it is providing information about the symbolic link itself.

Upvotes: 1

Related Questions