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 11-18-2014, 03:06 PM   #1
Reprovo
Member
 
Registered: Jul 2013
Posts: 37

Rep: Reputation: Disabled
symlink to symlink confusion,


I came across this symlink to a symlink

$ cd /usr/java
$ sudo ln -s $PWD/jdk1.7.0_05 latest
$ sudo ln -s $PWD/latest default

I'm confused about the second symlink.
I know It points to the same directory as 'latest'
/opt/JDK/jdk1.7.0_05
It seems from the syntax that 'default' would point to
/opt/JDK/opt/JDK/jdk1.7.0_05
 
Old 11-18-2014, 03:09 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Why would you think that?

/usr/java/default will point to /usr/java/latest
/usr/java/latest will point to /usr/java/jdk1.7.0_05
 
Old 11-18-2014, 03:17 PM   #3
Reprovo
Member
 
Registered: Jul 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
Ok. I get It! I was thinking about It like a symlink was some kind of variable that holds a path but It's Just pointing to something.
I don't know why I had that Idea In my head.
Thanks.
 
  


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
confusion: directory symlink and tailing / kaz2100 Linux - Software 9 06-04-2012 06:06 PM
Question How to get stat() of symlink and not of target of symlink ? ronbarak Programming 3 11-08-2010 01:14 PM
where is symlink? guitarfella Slackware 3 12-04-2004 08:34 AM
symlink evannextel Linux - Newbie 1 09-17-2003 04:54 PM
Symlink Mestax Linux - Newbie 3 09-04-2003 01:07 PM


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