Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-07-2007, 06:49 AM   #1
Registered: Jul 2006
Distribution: Debian Testing
Posts: 299

Rep: Reputation: 30
auto updateing symlinks?

Is it possible to create a symlink that will automatically repoint itself whenever the target file is moved?
Old 01-07-2007, 07:04 AM   #2
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (
Posts: 1,900

Rep: Reputation: 68
Do you want to make a link on the same disk? Use hard links then, it's what they are for. If it is on another disk, it's technically impossible to do correctly, because you can plug your HDD into another computer, mount only one of two partitions and move the file. In that case your link will have no chance to find its target. You are not going to do that, but as what you want cannot (in principle) be done in a entirely correct way, it is not done at all (kernel file system code has stricter requirements for theoretical possibility of correctness).
Old 01-07-2007, 07:09 AM   #3
Registered: Jul 2006
Distribution: Debian Testing
Posts: 299

Original Poster
Rep: Reputation: 30
Didn't think about the unmounting point, makes sense not to have this feature.

Thanks for the awnser.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Updateing Slackware 10.2 RIB-EYE Slackware 4 10-25-2005 07:35 PM
updateing Kernal LoGic82 Fedora 1 05-27-2005 02:56 PM
updateing AGilley007 Slackware 7 07-09-2004 04:55 AM
updateing ports rafalek *BSD 2 12-02-2003 07:32 PM
updateing to 8.1 kylo8787 Slackware 1 04-16-2002 03:04 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:15 AM.

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