|
From: mike on 14 Apr 2008 06:07 Hi, I am running out of space on my /tmp directory. But my /local/scratch is almost empty. How can I link my /tmp to store on /local/scratch instead? cheers, //mike
From: fazlin on 14 Apr 2008 06:21 On Apr 14, 3:07 pm, mike <mikaelpetter...(a)hotmail.com> wrote: > Hi, > > I am running out of space on my /tmp directory. But my /local/scratch > is almost empty. > How can I link my /tmp to store on /local/scratch instead? > > cheers, > > //mike Create a link to /loca/scratch from /tmp as shown: # ln -s /local/scratch /tmp/scratch Now all the contents that you put in /tmp/scratch will land in /local/ scratch. - Fazlin
From: mallin.shetland on 14 Apr 2008 07:08 mike scrisse: > I am running out of space on my /tmp directory. # rm -fr /tmp/* **BEWARE** you are root! It is nice doing this in single user mode or in init scripta. > ... > How can I link my /tmp to store on /local/scratch instead? Wrong way! The right way is clean up /tmp on boot or on shutdown so you have a clean system oat starup. That if you have a simple desktop, for a server that you never shutdown you can contemplate adding a cron job that periodically clean up /tmp directory.
From: Maxwell Lol on 14 Apr 2008 09:07 mike <mikaelpetterson(a)hotmail.com> writes: > How can I link my /tmp to store on /local/scratch instead? Some applications will use another directory instead of /tmp. It might be a command line option, or by setting the TMPDIR environment variable.
From: johngnub on 14 Apr 2008 11:49 2 more cents, do not forget to look fot "dot" files, stuff like .X11*, try a `ls -la` or my fav, `find /tmp -ls `, they may be the cause of your space issues., JB mallin.shetland wrote: > mike scrisse: > > I am running out of space on my /tmp directory. > > # rm -fr /tmp/* > > **BEWARE** you are root! > > It is nice doing this in single user mode or in init scripta. > > > > ... > > How can I link my /tmp to store on /local/scratch instead? > > Wrong way! > > The right way is clean up /tmp on boot or on shutdown so > you have a clean system oat starup. > > That if you have a simple desktop, for a server that you > never shutdown you can contemplate adding a cron job that > periodically clean up /tmp directory.
|
Pages: 1 Prev: how to get TTY with SSH session Next: Shell script to do like winmerge.... :) |