Solved

Need an example for how to link two directories in Solaris

Posted on 2004-04-15
3
317 Views
Last Modified: 2013-12-27
I am trying to set up gcc and I am running into space limitations in the /var/pkg directory and I heard that there is a way to symbolically link this directory to another with more space so that the gcc install can work.  Please give me an example of how I can "symbolically link" two directories for this reason.
0
Comment
Question by:roduno
3 Comments
 
LVL 4

Expert Comment

by:john-at-7fff
ID: 10838993
0
 
LVL 7

Accepted Solution

by:
glassd earned 250 total points
ID: 10841136
Given directory with the required space:
/some/path/bigdir
and another directory on another filesystem:
/some/path/mydir

You can make a new directory which is a link the that directory.
mkdir /some/path/bigdir/newdir
ln -s /some/path/bigdir/newdir /some/path/mydir

This will give you a directory /some/path/mydir/newdir which is a link to /some/path/bigdir/newdir and so should have oodles of space in it.
0
 

Author Comment

by:roduno
ID: 10851269
That worked.  Thanks.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question