Skip navigation

如果我们运行下面的语句,并且源文件不存在。

ln -sf not_exists symbol_link
readlink -f symbol_link

在RHEL4上的readlink不会打印任何输出,而在RHEL5上readlink会在标准输出打印not_exists的路径。这两个系统上readlink的版本分别是:

  • RHEL4: readlink (coreutils) 5.2.1
  • RHEL5: readlink (GNU coreutils) 5.97

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>