Web Hosting Talk







View Full Version : How Do I Remove a Symbolic Link?


Crash
10-11-2001, 04:56 AM
Hi,

Does anyone know the telnet comand to remove a link on a Redhat Linux server?

I linked a directory to a another directory... the wrong directory and I can't figure out how to remove it.

Thanks!

-CP

cperciva
10-11-2001, 05:22 AM
rm

Crash
10-11-2001, 01:24 PM
I tried the rm command on the emtpy directory that I linked (aliased) to the working directory. After using the command it said the directory is not empty. So I'm trying to figure out how to remove the link first?

Thanks

-CP

texasweb
10-11-2001, 01:31 PM
ln -f directory

Crash
10-11-2001, 01:39 PM
I'm trying to remove a link, not make one.

mithilesh
10-11-2001, 01:48 PM
you should go to the parent directory of the symbolic link after then use command

#rm -i <link name>

S2 Web Design
10-11-2001, 03:03 PM
rm -rf <linkdirectory>

Crash
10-11-2001, 07:52 PM
Thanks Eric that did the trick!

Ok... now maybe you can help link the directory properly?

I want to create a directory named "web" and link it to my htdocs directory. I have a client that uses /web when ftping into his website. I have switched from a Coblat raQ to a Linux server running Redhat 7x. The client is a bit of a tool and can't figure out how to change his ftp settings... don't ask :eek:

Thanks again for all your suggestions!

-CP

ffeingol
10-11-2001, 08:59 PM
This should do the trick for you:

ln -s /path/to/htdocs /web

You will prob. want to cd into the users home directory and issue that command. Then when they ftp in, their will be a web directory in their home directory.

Frank