Help answer threads with 0 replies.
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 06-20-2003, 04:37 AM   #1
LQ Newbie
Registered: Jun 2003
Location: London
Posts: 2

Rep: Reputation: 0
editing 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, 04:48 AM   #2
Registered: Jun 2003
Location: Midwest USA
Distribution: Debian (
Posts: 43

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


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- vmlinuz
Old 06-20-2003, 06:03 AM   #3
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- 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, 06:06 AM   #4
LQ Newbie
Registered: Jun 2003
Location: London
Posts: 2

Original Poster
Rep: Reputation: 0

Thanks it's sorted.


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

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