Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Mar 2000 01:19:45 -0800 (PST)
From:      Derrick Baumer <bduk@earthlink.net>
To:        jmd526@hotmail.com
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: symbolic links
Message-ID:  <200003230919.BAA01534@arthlink.net>
In-Reply-To: <20000323063640.24326.qmail@hotmail.com> (jmd526@hotmail.com)

next in thread | previous in thread | raw e-mail | index | archive | help

> From: "John Daniels" <jmd526@hotmail.com>
> 
> Hi:
> Can someone tell me how long a symbolic link lasts?  Do these need
> to be maintained in any way?  Are there any 'gotchas' in using them?

They don't expire.  Other than making sure you update the link if you
move the file, the only "gotcha" I can think of is making sure Apache
(web server) knows to follow symlinks if it needs (and if you want it)
to.

> I just did a symbolic link to place /var under /usr (as described in
> the book: The Complete FreeBSD.  Now I get the entry var@ when I
> enter the command ls -F.  I guess var@ tells me that there is
> symbolic link.

Yep.  The @ means link.  If you wanna see the contents of the
directory, include the trailing slash.

ls -f /var/

Probably wouldn't hurt to get into that habit anyway.  BTW, you can
alias ls to do ls -F.  Using sh (and compatible), you just pop a line
in ~/.profile

alias ls='/bin/ls -F'

Sorry if you already knew that.

> Thanks,
> John

-- 
Derrick Baumer
bduk@earthlink.net


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003230919.BAA01534>