LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-21-2004, 09:12 AM   #1
eroica
Member
 
Registered: Sep 2003
Distribution: Mandriva 2006,OpenSuse 10.1
Posts: 154

Rep: Reputation: 30
Question ? on symlinks


hello,
I recently installed java and because my root partition is getting tight i wanted to install it in my home partition. unfortunetly the rpm gave me no choice and installed the jre in /usr/java. I then moved the java directory and all files to /home/Program_Files/java and issued the following command:
ln -s /home/Program_Files/java /usr
the directory /usr/java shows as pointing to /home/Program_Files/java but none of the subdirectories or files in them show anything about them being symlinks. Have I correctly set this up or are ther now two copies of /java on my computer? Java is working ok in my browser by the way...

alan
 
Old 09-21-2004, 09:45 AM   #2
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
sure, i guess this could work around space constraints for you...

here's what's going on:
you moved the top directory -- that moves all the files and subdirectories under it, so
wherever the top directory is, the subdirectories and files are.

you symbolically linked at the top-directory level. now if you cd to /usr/java, you are not
working from /usr/java, because that directory does not exist, but you followed the link
to /home/Program_Files/java, and that is actually your working directory, though because
you followed the symbolic link to get there, it might look like it's /usr/java

linux symbolic links do not work like windows shortcuts. the symbolic links are all
but seamless in the file structure -- it only looks like there are two copies.
 
  


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
Symlinks and .. smidgie82 Linux - General 2 12-21-2005 04:13 PM
symlinks.. NSKL Slackware 3 05-26-2002 05:35 PM
symlinks not working terrykem Linux - General 4 12-06-2001 08:30 PM
Symlinks b0b0 Linux - General 2 11-08-2001 08:43 AM
symlinks tstuhr Linux - General 3 10-05-2001 10:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:51 AM.

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