LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 06-04-2007, 12:20 PM   #1
caa1980
Member
 
Registered: Aug 2004
Location: Salt Lake City, UT
Distribution: Ubuntu 10.04
Posts: 124

Rep: Reputation: 15
Delete temp files.


In windows one can use Disk clean up to delete temp files. How dose one do this in ubuntu?
 
Old 06-04-2007, 12:56 PM   #2
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918

Rep: Reputation: 31
What files are you taking about? Like your browser would store in the user path or the system /tmp?
 
Old 06-04-2007, 01:18 PM   #3
caa1980
Member
 
Registered: Aug 2004
Location: Salt Lake City, UT
Distribution: Ubuntu 10.04
Posts: 124

Original Poster
Rep: Reputation: 15
I mean any temp files that linux leaves behind.
 
Old 06-04-2007, 02:03 PM   #4
stealth_banana
Member
 
Registered: Mar 2004
Location: Scotland
Distribution: Debian Sid / Kubuntu
Posts: 170

Rep: Reputation: 30
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.

Last edited by stealth_banana; 06-04-2007 at 02:04 PM.
 
Old 06-04-2007, 11:45 PM   #5
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
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.
 
Old 06-05-2007, 12:02 AM   #6
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918

Rep: Reputation: 31
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.
 
Old 03-29-2010, 07:47 AM   #7
Mr.Gosh
Member
 
Registered: Sep 2004
Location: Germany
Distribution: openSuSE 11.2 64 bit
Posts: 48

Rep: Reputation: 15
Question

Quote:
Originally Posted by caa1980 View Post
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!

Last edited by Mr.Gosh; 03-29-2010 at 07:52 AM. Reason: Wrong Sub Forum used...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do have to clean temp.files, ....? schneemann Suse/Novell 3 01-16-2006 11:05 PM
Wine Temp Files? Garibaldi3489 Slackware 1 01-09-2005 11:26 AM
How To Delete temp Internet Files? agee220 Linux - Newbie 3 08-25-2004 02:36 PM
temp files Daggelicious Linux - Newbie 2 08-21-2003 10:00 PM
temp internet files illtbagu Linux - General 1 04-30-2003 02:18 AM


All times are GMT -5. The time now is 01:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration