LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-19-2009, 11:08 AM   #1
jjanes
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Question symbolic links


HI I have a webhosting account the is running linux I believe RedHat but I think the question is generic

Can you have two symbolic links in two different directories called the same thing and point to the same place


An example

Path1=c:/lev1/lev2/lev3/dir1
Path2=c:/lev1/lev2/lev3/dir2

can both dir1 and dir2 have symbolic link called up1 that essentially moves up to lev3 in the directory tree

ln -s ../ up1

I do this because I am hosting multiple websites on a common directory tree and each URL I point to a given directory makes that the base in its own file structure so i create the up1 symbolic link to break out of the directory structure symbolically


In the above example

dir1 and dir2 are two websites that have URLs pointing directly there lev3 contains files that are common to both such as css and js files

I don't see why this wouldn't work.

In the real world it, in fact,does work for the dir1 files but for some reason the files in dir2 which are virtually duplicates of dir1 with only minor changes does like that symbolic link I call up1 which should point to the directory above the base in the tree structure.

Please let me know your thoughts
 
Old 06-19-2009, 02:01 PM   #2
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,288

Rep: Reputation: 174Reputation: 174
yes you can.

why don't you just try it and see?
 
  


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 Vs Hard links sulekha Linux - General 2 10-02-2008 07:03 AM
help with symbolic links sopiaz57 Linux - General 2 06-11-2004 06:17 PM
Symbolic links? TongueTied Linux - Newbie 3 08-27-2003 06:00 AM
Symbolic links pdstatha Programming 1 04-08-2002 09:50 PM
symbolic links winger Linux - General 5 04-06-2002 05:16 PM


All times are GMT -5. The time now is 10:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration