General :: Remove Temporary Files?
Apr 11, 2010me with proper syntax / command to remove temporary files in linux
View 9 Repliesme with proper syntax / command to remove temporary files in linux
View 9 RepliesHowever, the ffmpeg command generates a temporary file blahblah.mpg.tmp of about 1GB per hour of transcoded video.My issue is that I can't seem to delete these files automatically from any bash script.Now from the command line, I can cd to the directory and just rm -f *.tmp and they get deleted. However, from my script, that same command doesn't remove those files. I thought maybe the file was in use, so I put a sleep command in for like an hour before the delete happens, but it still fails. I also put rm -f /mnt/mythtv/*.tmp in a root cronjob and it still doesn't delete the files.
If I just rm *.tmp I do get a prompt about "Are you sure you want to delete this write protected file?". But the -f switch seems to work fine as a normal user from the command line and just delete them.Does anyone have an idea how to troubleshoot this problem? The particular filesystem that the tmp files get generated on is on it's own xfs partition mounted as /mnt/mythtv.
Where exactly are the temporary files stored, in /tmp or /var/tmp. How can i remove temporary files through command line? What is the difference between these two directories?
View 2 Replies View RelatedIs there a cc cleaner equivalent for linux to clear out tmp, internet files, etc.?
View 9 Replies View RelatedWhere is the Temporary Internet files?
View 2 Replies View RelatedWhere are the temporary files (.iso etc..) unetbootin downloads stored? Or are they stored at all?
View 1 Replies View RelatedI'm new here and still searching how this forum works, but can anybody tell me where i can find the temporary internet files? In windows it was easy, but ubuntu 11.04 is totaly diferent. I use it now for 5 days and i'm happy i changed to ubuntu.
View 2 Replies View RelatedI am using OpenSuse 11.2 (64 bits) with KDE 4.3.1. My hard disk partition contains 3 areas : / + /home + swap. Frequently the / area is filling with, I suppose, temporary files until it is full (15 Go) and that in a very short time, typically about 5 mn. Then, these files are cleaned by the system, when disk space is needed I suppose. The point is that during this time, the system goes slower and slower until the "cleaning". That seems to occur only when Firefox (3.5.6) is running so I suppose that these files are temporary internet files.
View 9 Replies View RelatedIt is saying to make sure there is enough room in the tmp folder, so I cleaned out the entire tmp folder but the same error is still happening. Is there a way to make the tmp folder bigger? Or perhaps extract the temporary files to a different folder? Or maybe the size if the tmp folder is not even the problem?
View 1 Replies View RelatedWhere are temporary internet files stored so as that I can delete them. A second point is that I have had Ubuntu for a few months now and my computer is starting to slow down.
View 2 Replies View RelatedFlash Player ActiveX is always copying movie from I-net before playing it. Is it possible to load and play flash movies directly from any source without usage of temporary files to protect the movie from any other LOCAL outside access?
View 2 Replies View Relatedi just installed qmt.iso from site qmailtoaster.i can create domain on admin-toaster and add new account at domain.i have problem when i'm testing send email,there warning :"451 DNS temporary failure (#4.5.1 - chkuser)".
View 1 Replies View RelatedI have a couple of files which follow this syntax:
*_yyyy-mm-dd_hhhmmm.*
Example:
*_2010-01-01_00h10m.*
*_2010-01-01_01h10m.*
*_2010-01-01_02h10m.*
[Code].....
and delete the others. or maybe move them to a subdirectory to be safe...
Output of my terminal:
linuxx86:110$ rm -rf *
rm: cannot remove `dttscopeger.dir/.nfs00000000012821280000ec25': Device or resource busy
rm: cannot remove `dttscopeger.dir/.nfs00000000015561050000ec26': Device or resource busy
[code]...
I'd like to remove all directories of a certain depth that don't contain .txt or .log files -- is this possible? So far I have: find ~ -mindepth 3 -maxdepth 4 -type d -exec rm -r '{}' ; Is it possible to add in "only if the directory doesn't contain .txt and/or .log files"? Or do I have to start learning perl to do that?
For example:
dir 1:
hello.txt
runme.sh
dir 2:
runme.sh
oct12.log
[Code]....
i have downloaded the pidgin.repo file from the web and copied in /etc/yum.repos.d. and i simply start the yum-updatesd service. When i fire the command yum install pidgin, it gives some name resolution problem. i am accessing net through proxy server.RHEL 5 is my distro. This is what the error msg i am getting.
[Code]....
I guess in most cases when extracting a tar achive ,we will get a directory with the same name as the archive file but different suffix. but in some unlucky case, as I met today, after extract a tar bar I find lots of files spread in the working directory, which is really nuisance.so what I want to learn from you is that how can I move thoes newly created files ? I know it should be some "find plus rm" fancy approch there, but I don't know exactly how.
View 3 Replies View RelatedI am trying to remove all the files in a directory hierarchy which a certain string inside the file (not the file name, it is the file content).
I can list out all the file name which has a string in the file using 'grep -r -l mystringlooking for'.
But how can I remove all the files returned by the grep ? I am trying this on ubuntu.
I need to delete all files inside remote directory using ssh P.S. The directory must not be deleted, so @Wes answer is not what I need. If it would be local dir, I would run "rm -rf dir/*"
View 4 Replies View RelatedHow can you remove files containing a specific string?I have...Code:find |grep 'string'This may return several results and I wanted to rm the results.I also have...Code:ls -l |grep 'string'|awk '{print $9}'which also may return results.But point is, I can't supply the results as a parameter to rmI was thinking of looping but I don't know how to access the results as if they were an array or something.
View 5 Replies View RelatedI have two folders - Folder abc and Folder xyz which contains 1000's of files with few of them having the same file names. How can I remove the duplicates from Folder abc?
View 14 Replies View RelatedIs there a way to do the rm command where I can remove files by owner. I run the standard ls -al command and I want to be able to remove the files that are owned by me in that current directory. One other step how can I remove files in all directories owned by me. I did the google search first guys and a majority of the pages just dealt with the basics like rm -r
View 5 Replies View RelatedLike in the kde desktop there is; "kdesu" for temporary root, such as to open a text to edit. So then does the gnome desktop use "gksu" for it's temporary root ? I now refer to a Fedora 11 install. And how can I change a utility tool to open up as a regular user, (not just only as root) ?
View 2 Replies View RelatedI have a directory (Linux user) with a number of files which contain an added [!] to the end of each file name so that each file reads out as:
foo something [!].zip
bar something [!].zip
helloworld [!].zip
etc.
What is the quickest way to batch rename these to remove the ending [!] character combination from these file names?
I have a bunch of files on a usb stick that have just the e attribute set. So I can't chattr them, rm -f fails and chmod fails, all whether as user or root. How can I get rid of the e attribute? Failing that, how can I get rid of the files?
View 3 Replies View RelatedI am considering removing all programs and software that handle images so that you cannot view images on the computer and .jpeg would be an unrecognizable file. It's impossible to remove the program that views images in Windows since Explorer is that program - a central Windows component, but I wonder if it is possible to use an alternative operating system like linux and remove the programs that handle images without affecting the system.
I need to do this because of the following problem. I had an internet filter installed but it became useless once certain proxy/circumventor sites such as www.ibypass.com were discovered, which allowed access to any website on the internet. Blocking proxy sites does not work because you can type "https" at the beginning of some of these web addresses and the internet filter cannot keep track of the secure browsing
I would like to create a cronjob that will delete all files within a directory 1 hours after it is created to the folderI found this cron find /path/to/file/* -ctime +1 -exec rm {} ; but it's deleted all files.I want to make an exception, all file should be deleted except one file (letsay file a.zip)
View 16 Replies View RelatedI was doing some data recovery with Photorec and by the time I was done I have over 700 folders (recup_dir.).The only solution I was able to apply was the one posted by pljvaldez on this site dated 04-09-08, 09:01 AM. After doing the same thing for at least 70 times I decided to ask, so, is there anyone that knows how to delete multiple folders at the same time.
View 2 Replies View Relatedthis is my first post and I am not sure if this belongs here or in hardware.Now for the main post!
setup:
Dell Demension 4400
Intel(R) Pentium(R) 4 CPU 1.60GHz, 1 cores
[code]...
i tried to run lame install. on debian lenny amd64.
sudo sh /home/levi/Desktop/lame-3.98.4/install.sh
it returned errors, and i gave up on that. but it has placed a bunch of files and directories in my home folder(not in Desktop)which are owned by root. how may i delete them?
folders are
ACM
debian
Dll
doc
[Code].....
mv: cannot move ..... to ... No such file or directory. which i at least FEEL is certainly not the case.