if [ -h "demo" ]; then echo "-h: true" fi if [ -L "demo" ]; then echo "-L: true" fi
我发现“-h”和“-L”都可以用来判断指定文件是否是链接。它们之间有什么区别?
bash
bash ×1