Results 1 to 6 of 6

Thread: How to clear cache - files are adding up

  1. #1
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    455

    Default How to clear cache - files are adding up

    I just noticed that my hard drive is filling up with unnecessary files. what is the command to clean it up?

    I've had to do this in Mandriva a while ago on my other pc.
    I'm running opensuse 11.2 KDE 64 bit

  2. #2
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: How to clear cache - files are adding up

    Here is a quote I found directly out of another forum message on how to clear the /tmp folder on a restart:

    **********************************************************************

    The usual way actually is removing the content of /tmp while booting (which is not default on SuSE).

    I'm sure this is common knowledge, but anyway:

    Open /etc/sysconfig/cron, search for a line saying

    Code:

    CLEAR_TMP_DIRS_AT_BOOTUP="no"

    ...and edit "no" to "yes". This could also be done via GUI: YaST → "Editor for /etc/sysconfig".

    *********************************************************************

    I saved this method for future use and use it on all loaded copies of openSUSE and it seems to work like a champ. You can use the menu/run command and enter "kdesu kwrite /etc/sysconfig/cron" without the quotes. Enter the root password, search for the string above, change it, save it and restart openSUSE.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  3. #3
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    455

    Default Re: How to clear cache - files are adding up

    Quote Originally Posted by jdmcdaniel3 View Post
    Here is a quote I found directly out of another forum message on how to clear the /tmp folder on a restart:

    **********************************************************************

    The usual way actually is removing the content of /tmp while booting (which is not default on SuSE).

    I'm sure this is common knowledge, but anyway:

    Open /etc/sysconfig/cron, search for a line saying

    Code:

    CLEAR_TMP_DIRS_AT_BOOTUP="no"

    ...and edit "no" to "yes". This could also be done via GUI: YaST → "Editor for /etc/sysconfig".

    *********************************************************************

    I saved this method for future use and use it on all loaded copies of openSUSE and it seems to work like a champ. You can use the menu/run command and enter "kdesu kwrite /etc/sysconfig/cron" without the quotes. Enter the root password, search for the string above, change it, save it and restart openSUSE.

    Thank You,
    what's the command to use kwrite to edit the file in root?

    Yast is more confusing than the command line. I can't find where to look in Yast.

  4. #4
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: How to clear cache - files are adding up

    Use the run command with: kdesu kwrite /etc/sysconfig/cron

    Enter the password, search for the string, change the option to yes, save the file and restart openSUSE.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  5. #5
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    455

    Default Re: How to clear cache - files are adding up

    Quote Originally Posted by jdmcdaniel3 View Post
    Use the run command with: kdesu kwrite /etc/sysconfig/cron

    Enter the password, search for the string, change the option to yes, save the file and restart openSUSE.

    Thank You,
    Thank you

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,998

    Default Re: How to clear cache - files are adding up

    Quote Originally Posted by vinoman2 View Post

    Yast is more confusing than the command line. I can't find where to look in Yast.
    YaST > System > /etc/sysconfig editor.
    Then expand + System + Cron and there you see the whole bunch.

    Not to difficult imho. Try to get aqaintanced with YaST a little bit by looking inside all the features. This will save you a lot of time when you need something and you are to stressed to look at ease.
    Henk van Velden

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •