Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Need an example for how to link two directories in Solaris

Posted on 2004-04-15
3
Medium Priority
?
345 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 7

Accepted Solution

by:
glassd earned 1000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month10 days, 1 hour left to enroll

927 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