Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-17-2007, 12:16 AM   #1
Registered: Jun 2007
Location: India
Distribution: Ubuntu,Red Hat, Fedora
Posts: 292

Rep: Reputation: 30
Remove The Link???

How can I remove the link?

ln -s /etc/httpd/conf.d/ /usr/local/

Pls Help
Old 12-17-2007, 12:23 AM   #2
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
Originally Posted by ajeetraina View Post
How can I remove the link?

ln -s /etc/httpd/conf.d/ /usr/local/

Pls Help
As far as I understand, a command like this would create a symbolic link called "conf.d", pointing at /etc/httpd/conf.d, inside your /usr/local/ directory. Provided, of course, that it already existed when you ran this command.

Just remove "conf.d" from /usr/local. Like this

cd /usr/local
rm conf.d
Old 12-17-2007, 12:35 AM   #3
Senior Member
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
Uncle_Theodore is quite correct

ln will not overwrite any existing file or directory, but attempt to create a link one level down.

cd /tmp
mkdir A
mkdir B
ln -s /tmp/A /tmp/B
Creates a link: /tmp/B/A that points to /tmp/A

However, if /tmp/B/A exists you get an error stating:

ln: creating sybolic link '/tmp/B/A' to '/tmp/A': File exists


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
remove link nutbag *BSD 2 02-15-2006 11:51 AM
remove link kpachopoulos Linux - Newbie 2 07-23-2005 02:42 PM
Is there a way to remove a symbolic link Philter Linux - Newbie 3 11-30-2004 06:24 PM
Can't remove symbolic link kimchee411 Linux - Newbie 1 10-06-2004 02:25 AM
how to remove link boToo Linux - Newbie 1 08-24-2003 01:04 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration