LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 04: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, 04: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, 06:03 AM   #3
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 464

Rep: Reputation: 52
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, 06:06 AM   #4
solarnet
LQ Newbie
 
Registered: Jun 2003
Location: London
Posts: 2

Original Poster
Rep: Reputation: 0
Symlinks

Thanks it's sorted.
 
  


Reply



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

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

All times are GMT -5. The time now is 03:17 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