LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 02:06 PM   #1
Reprovo
Member
 
Registered: Jul 2013
Posts: 59

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, 02:09 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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, 02:17 PM   #3
Reprovo
Member
 
Registered: Jul 2013
Posts: 59

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:37 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
Open Source Consulting | Domain Registration