Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-24-2009, 01:07 AM   #1
LQ Newbie
Registered: Jun 2009
Distribution: fedora 10
Posts: 5

Rep: Reputation: 0
Question delete temp file in linux

Can i delete temperary file in linux...?
Old 06-24-2009, 01:11 AM   #2
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 69
Well, it depends.
What temporary file? Who created it? Why do you want to delete it?

See, temporary files created by running programs are usually created on purpose, and get deleted when the program exits. If it exits abnormally, it may leave a temp file behind, and you might want to delete it. But you need to be sure that's what you want to do.
Some temp files are deleted automatically at reboot. Not all, unfortunately...
Old 06-24-2009, 01:18 AM   #3
Registered: Aug 2003
Location: Illinois
Distribution: Linux Mint XFCE
Posts: 653

Rep: Reputation: 53
If you want to clear your temp files (they live in /tmp in most distributions) it is indeed possible and necessary as Uncle_Theodore said... not all delete when the program exits. I however find you shouldn't need to do this often... it's been years for me, but then again, I completely reinstall (except home) every time I upgrade to a new version of Ubuntu.

If and when you do.... DO NOT delete the temp folder... else you're going to have to play with the command line to fire up X again. Just delete the contents of the folder. I will assume you're using Ubuntu:

sudo nautilus /tmp
Just select everything in the folder and hit delete. Be careful though, I don't really see why you should need to do this- and it is possible to delete something you need and then screw everything up.


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
Delete temp files. caa1980 Ubuntu 6 03-29-2010 08:47 AM
delete yesterday's temp files Flugelhornchris Programming 8 02-04-2008 01:52 PM
How to create/delete temp/backup files through a shell script ? Sid2007 Programming 4 10-17-2007 02:55 PM
How To Delete temp Internet Files? agee220 Linux - Newbie 3 08-25-2004 03:36 PM
temp file, somewhere? florestan Linux - Software 9 04-14-2003 05:20 PM > Forums > Linux Forums > Linux - Newbie

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

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