[NTLUG:Discuss] symbolic links

Darin W. Smith darin_ext at darinsmith.net
Wed Apr 16 09:27:54 CDT 2003


On Wed, 16 Apr 2003 09:12:46 -0500, Richard Humphrey <richard at multicam.com> 
wrote:

> How do you remove a symbolic link?
>
>
> Richard Humphrey
>

supposing:

mylink -> myfile

rm mylink

will remove the link and leave the file (myfile) intact.

As long as it is a *symbolic* link, rm will just remove the link (don't do 
that on hard links though, because a hard link is really the original file) 
.

Depending on the shell you use, and the distro you use, you may also have 
an 'unlink' command.

Note that depending on permissions, or sometimes if the file pointed to 
doesn't exist, you may have to use the -f (force) option to rm.

-- 
D!
Darin W. Smith
AIM: JediGrover




More information about the Discuss mailing list