当我为目录创建软链接时,我检查了inode编号,当我检查下面的模式时,它显示我一样,为什么它显示我一样?
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
答案 0 :(得分:1)
当您包含尾随/
时,ls
列出了目录的内容。如果不这样做,它将提供有关符号链接本身的信息。