Solved

Need an example for how to link two directories in Solaris

Posted on 2004-04-15
3
304 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

759 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now