Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Need an example for how to link two directories in Solaris

Posted on 2004-04-15
3
Medium Priority
?
339 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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.:
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.

704 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