LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-20-2003, 05:37 AM   #1
solarnet
LQ Newbie
 
Registered: Jun 2003
Location: London
Posts: 2

Rep: Reputation: 0
editing symlinks..help required


Sorry..complete newbie needs help on editing a symlink that currently points to the wrong destination. How do I view where it currently points and then edit that. Thanks.
 
Old 06-20-2003, 05:48 AM   #2
BlckJck
Member
 
Registered: Jun 2003
Location: Midwest USA
Distribution: Debian (www.knoppix.net)
Posts: 43

Rep: Reputation: 15
ls -l linkname to display the full "link"

example:

lrwxrwxrwx 1 root root 23 Jul 5 2003 vmlinuz -> boot/vmlinuz-2.4.20-xfs

to change, delete the link

rm vmlinuz

then make a new link

link /boot/vmlinuz-2.9.9.9.9 vmlinuz
 
Old 06-20-2003, 07:03 AM   #3
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 457

Rep: Reputation: 41
I personally do not have "link". (Is that a Debian thing?) I would do the following (after your example).

ln -s /boot/vmlinuz-2.9.9.9.9 vmlinuz

Remember that ln works with its arguments as follows:

ln -s <real file/dir> <link location>

It is easy to follow the order found in the ls -ld output and try put the link location first and real location second. At least for me, and some call me experienced.
 
Old 06-20-2003, 07:06 AM   #4
solarnet
LQ Newbie
 
Registered: Jun 2003
Location: London
Posts: 2

Original Poster
Rep: Reputation: 0
Symlinks

Thanks it's sorted.
 
  


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
Symlinks and .. smidgie82 Linux - General 2 12-21-2005 05:13 PM
? on symlinks eroica Linux - Software 1 09-21-2004 10:45 AM
symlinks.. NSKL Slackware 3 05-26-2002 06:35 PM
Symlinks b0b0 Linux - General 2 11-08-2001 09:43 AM
symlinks tstuhr Linux - General 3 10-05-2001 11:49 AM


All times are GMT -5. The time now is 07:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration