1834800 Members
2515 Online
110070 Solutions
New Discussion

Re: Symbolic Link

 
SOLVED
Go to solution
Pablito Maguicay_1
Occasional Advisor

Symbolic Link

How to remove and redirect symbolic link?

(e.g. /usr filesystem) I got this list using ll command.

lrwxrwxrwt 1 root sys 8 tmp -> /var/tmp

I want to redirect /usr/tmp to /tmp/tmp

Please advise. Thanks


6 REPLIES 6
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: Symbolic Link

Hi,

# cd /usr
# rm tmp
# ln -s /tmp/tmp /usr/tmp

Regards,
Robert-Jan
Joseph Loo
Honored Contributor

Re: Symbolic Link

hi,

try this:

# cd /usr
# rm tmp
# ln -s /tmp/tmp/ tmp

but why do u want to do this?

regards.
what you do not see does not mean you should not believe
Pablito Maguicay_1
Occasional Advisor

Re: Symbolic Link

Hi Joseph,

Oracle Applications use /usr/tmp which link to /var/tmp. When users export data from Oracle Applications to Excel sometimes the free space in /var/tmp is not enough causing an error. I want to redirect /usr/tmp to other filesystem which much free space.

Regards.


Pabs
Muthukumar_5
Honored Contributor

Re: Symbolic Link

you can try simply as,

cd /usr
ln -fs /tmp/tmp tmp

hth.
Easy to suggest when don't know about the problem!
Joseph Loo
Honored Contributor

Re: Symbolic Link

hi,

so i see. i wonder what u may have set for /tmp/tmp cause it is never going to be enough if u do not do housekeeping for that mounted filesystem as well.

regards.
(p.s. please remember to assign points.)
what you do not see does not mean you should not believe
Pablito Maguicay_1
Occasional Advisor

Re: Symbolic Link

Thanks for al your answer.