LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-08-2010, 12:42 AM   #1
pooldoo
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Rep: Reputation: 0
How did I lost my symbolic links?


I have a main directory containing text files (song lyrics) and a number of subdirectories under it where I created ONLY symbolic links referencing the main directory (song lists.) After doing this more than a year I noticed that somehow the symbolic links had become copies of the target file (no longer symlinks.) What could I have done to cause this?

I'm running Arch linux, bash is up to date.
 
Old 09-08-2010, 03:41 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3
Posts: 3,957

Rep: Reputation: Disabled
Did you maybe omit the -s option?
Code:
ln -s target link-name
That would have the effect you described...
 
Old 09-08-2010, 09:28 AM   #3
pooldoo
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Original Poster
Rep: Reputation: 0
No, I definitely used the -s option.
 
Old 09-08-2010, 09:38 AM   #4
myposts
Member
 
Registered: Jun 2010
Posts: 46

Rep: Reputation: 21
Try...

It may be that you ran something that copies actual file over the symb links. My advice is, first check the time stamps on the files. Did it happened on one occasion? Do they have a particular date on them, or may be two or tree? It would narrow the analysis significantly.
 
1 members found this post helpful.
Old 09-08-2010, 09:41 AM   #5
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3
Posts: 3,957

Rep: Reputation: Disabled
Do you use "exotic" keyboard layouts, or map the character codes so that the "-s" isn't truly composed with an "s"? Alternatively, using a capital "S" (caps lock...) would also have this effect
Code:
man ln
 
Old 09-09-2010, 10:51 AM   #6
pooldoo
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Original Poster
Rep: Reputation: 0
After checking the timestamps (good idea) I believe I must have extracted a tarred backup over the existing files. I had been experimenting creating the tar files with symlinks stored as symlinks, but this must have been an earlier version where the original files were stored instead. Since I lost my symlinks on the same date I created the tar, this must have been what happened.

Thanks to all.
 
  


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
symbolic links _Linux_Learner Linux - Newbie 2 02-26-2010 04:39 PM
Symbolic links Vs Hard links sulekha Linux - General 2 10-02-2008 08:03 AM
Symbolic Links SBN Linux - Newbie 5 08-09-2007 06:48 AM
cp and symbolic links? sausagejohnson Linux - General 3 07-19-2005 02:25 AM
symbolic links winger Linux - General 5 04-06-2002 06:16 PM


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