LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-17-2007, 01:16 AM   #1
ajeetraina
Member
 
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, 01:23 AM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
Quote:
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, 01:35 AM   #3
Disillusionist
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.

Code:
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:

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


Reply


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 12:51 PM
remove link kpachopoulos Linux - Newbie 2 07-23-2005 03:42 PM
Is there a way to remove a symbolic link Philter Linux - Newbie 3 11-30-2004 07:24 PM
Can't remove symbolic link kimchee411 Linux - Newbie 1 10-06-2004 03:25 AM
how to remove link boToo Linux - Newbie 1 08-24-2003 02:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:09 PM.

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