发现linux中ls命令的一个错误
在linux 中,ls 命令的—L (大写l)参数,用于列出该目录下的软连文件本身,而不是软连所指向的文件。
如下我是测试的结果。 也请linux 高手也看看。
1. 列出当期目录的所有文件,默认软连文件会以指向实际文件的格式显示,即文件名字段显示:软连名—> 软连所指向的文件。比如
2. L 参数,则只显示软连文件本身
3. 但是在linux的ls的man手册中,L参数意思是只显示 指向的文件。 请大家也看看,是我看错了么……
-L, --dereference
when showing file information for a symbolic link, show information for the file the link references rather than for the link itself
<script type="text/javascript"> </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>