LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Delete temp files. (https://www.linuxquestions.org/questions/ubuntu-63/delete-temp-files-559083/)

caa1980 06-04-2007 12:20 PM

Delete temp files.
 
In windows one can use Disk clean up to delete temp files. How dose one do this in ubuntu?

Xian 06-04-2007 12:56 PM

What files are you taking about? Like your browser would store in the user path or the system /tmp?

caa1980 06-04-2007 01:18 PM

I mean any temp files that linux leaves behind.

stealth_banana 06-04-2007 02:03 PM

That isn't really a problem on Linux as /tmp is generally cleaned out. It has a lot better housekeeping than some other OSs than can be named.

When you download files from the repos, these are left in /var/cache/

Use 'sudo apt-get clean' to get rid of em.

fragos 06-04-2007 11:45 PM

When you edit text files with gedit a backup is made with the file name of the original ended with a tilde "~". Normally nautilus doesn't show hidden files, those that start with "." and those that end with "~". If you ultimately delete a text file it's backup file isn't deleted. In nautilus you can use Ctrl-H to see hidden files in the current directory. Open a terminal window and do "ls *~" to see any backups in the working directory. "rm *~" will delete them. If you wish you can construct a bash script that will delete recursively.

Xian 06-05-2007 12:02 AM

Quote:

Originally Posted by caa1980
I mean any temp files that linux leaves behind.

If it's a user application like your browser then just empty the cache from either the menu bar options or from your ~/.application directory. If it is the /tmp path then AFAIK Ubuntu is one of the distros that performs this function at set intervals. But you can always just do it yourself if it matters to that extent. If you want to empty the package manager cache then this option is already provided for...just read the help file.

Mr.Gosh 03-29-2010 07:47 AM

Quote:

Originally Posted by caa1980 (Post 2774725)
In windows one can use Disk clean up to delete temp files. How dose one do this in ubuntu?

Well I like the question!
No matter why (in my case its an machine where everyone can get access to) - I want this to happen if I shut down my machine!

In this Example its a nice way to achive this in ubuntu.

But how is this possible in openSuse?

Any Ideas?

Well OK this is an Ubuntu Forum - So I will post my Question elsewhere!

THX anyway!


All times are GMT -5. The time now is 02:42 PM.