1834149 Members
2179 Online
110064 Solutions
New Discussion

creating a logical link

 
SOLVED
Go to solution
Jason Reed
Occasional Advisor

creating a logical link

my root mailbox file, /tmp/mbox.root, has filled up the /tmp volume. I want to create a logical link, to point to another directory so that I can open the mailbox and delete the messages. Will that work? And if so, how do I do it?
3 REPLIES 3
MARTINACHE
Respected Contributor

Re: creating a logical link

Hi,

Supposing that you want to move your mailbox under /otherfs :

mv /tmp/mbox.root /otherfs

ln -s /othersfs/mbox.root /tmp/mbox.root

Regards,

Patrice.
Patrice MARTINACHE
James R. Ferguson
Acclaimed Contributor
Solution

Re: creating a logical link

Hi:

If you don't care about any of the messages, and want to empty the whole mailbox, do this:

# cat /dev/null > /var/mail/root

...JRF...
Jason Reed
Occasional Advisor

Re: creating a logical link

Thanks to both of you. Obviously, I am new to sys. admin responsibilities. Thank god for this site.