LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-17-2006, 10:05 AM   #1
anh
LQ Newbie
 
Registered: Mar 2006
Posts: 9

Rep: Reputation: 0
Unlink the symbolic link problem


Hi

I created the symbolic link while configuring the kernel
ln -s /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/ /usr/src/linux
The problem is that the /usr/src/linux directory was already there so when I do
[root@work2]cd /usr/src/linux
[root@work2]ls
[root@work2]linux-2.6.9 (I expect the content of linux-2.6.9 here )
If I want to unlink it
[root@work2]unlink /usr/src/linux
unlink:cannot unlink '/usr/src/linux: is a directory
If I try

[root@work2]unlink /usr/src/linux/linux-2.6.9
unlink:cannot unlink '/usr/src/linux/linux-2.6.9: not a directory

Can anyone tell me how to remove the symbolic link?
Anh
 
Old 03-17-2006, 11:09 AM   #2
nixcraft
Member
 
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
What is output of ls -l command:
ls -l /usr/src/
 
Old 03-17-2006, 11:20 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Erase the link with "rm"

I guess:
cd /usr/src/linux
rm linux-2.6.9


then
cd /usr/src
ln -s /usr/src/redhat/BUILD/kernel-2.6.9/linux-2.6.9/ linux
 
Old 03-17-2006, 01:47 PM   #4
anh
LQ Newbie
 
Registered: Mar 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Using rm works
Thanks
 
  


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
Java (JRE 1.5.0_02) - Symbolic Link Problem pacranch Amigo 1 04-14-2005 06:37 AM
help with a symbolic link mykrob Linux - Software 6 11-22-2004 11:01 AM
symbolic link problem ranger225 Linux - Newbie 13 09-21-2004 03:47 PM
Redhat 8.0 Symbolic Link Problem & Maillog Problem. borisys Red Hat 1 07-27-2004 10:35 AM
differences betwn link, unlink, mkdir, rm h/w Programming 7 01-06-2004 06:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:33 AM.

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