readlink -f和readlink -m 的实际区别是什么?我实测测不出来?
发表于 : 2016-11-06 1:48
readlink -f和readlink -m 的实际区别是什么?我实测测不出来?
但我这里测试"最后一个"不存在,输出结果也没有影响
比如"readlink -f /abc",还是照样会输出
代码: 全选
-f, --canonicalize
canonicalize by following every symlink in every component of the given name recursively; all but the last component must exist
-e, --canonicalize-existing
canonicalize by following every symlink in every component of the given name recursively, all components must exist
-m, --canonicalize-missing
canonicalize by following every symlink in every component of the given name recursively, without requirements on components existence
比如"readlink -f /abc",还是照样会输出