[GRLUG] What's the diff?

Dave Chiodo megadave at gmail.com
Sat Mar 1 16:51:12 EST 2014


Say /home/user/link is a symlink.

on both systems, try

ls -l /home/user/link

vs

ls -l /home/user/link/

(notice the / at the end)


On Sat, Mar 1, 2014 at 4:40 PM, L. V. Lammert <lvl at omnitec.net> wrote:

> If one does an ls on a symbolic link in BSD, it shows the files at the
> destination of that link; if one does an ls on a symbolic link on a
> current Linux system it shows the *link*, not the contents where the link
> points [assuming a directory, .. have not tried a file link].
>
> Something has changed in the Linux builds in the past few years [testing
> on an old CentOS box acts as expected]. What is the philosophy behind the
> change, and how would one show files at the target of a symlink now?
>
>         Thanks!
>
>         Lee
> _______________________________________________
> grlug mailing list
> grlug at grlug.org
> http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shinobu.grlug.org/pipermail/grlug/attachments/20140301/de6c8c2d/attachment-0001.html>


More information about the grlug mailing list