文件比较,我用软链接测试 -ef命令 返回的也是yes。请问是什么原因
[ ./student.txt -ef /tmp/stu_s.txt ] && echo yes || echo no
```sh
# ✅
[ ./student.sh -ef ./soft ] && [ -L ./soft ] && echo yes || echo no
[ ./student.sh -ef ./hard ] && [ -L ./hard ] && echo yes || echo no
```
![image](https://github.com/xgqfrms/linux-shell-script-programming/assets/7291672/94ce2289-e74a-4f69-a33a-54dee716ae04)
同问 如果知道了原因麻烦说一下