Latest LQ Deal: Latest LQ Deals
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-19-2009, 11:08 AM   #1
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


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
Senior Member
Registered: Mar 2004
Location: england
Distribution: NetBSD, Void, Debian, Mint, Ubuntu, Puppy, Raspbian
Posts: 3,485

Rep: Reputation: 223Reputation: 223Reputation: 223
yes you can.

why don't you just try it and see?


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 > Forums > Linux Forums > Linux - Newbie

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