script to delete tmp files
we have 2 linux desktop m/c as server and we use amc n windows as clients....we get more temp files like .AppleDoueble, ":2edstore"......i need to remove these temp files periodically with the help of script.....can anyone give ideas on how to write a script to remove these temp files.....
|
Where are the files located?
Do they end at .tmp or .temp? Code:
#/usr/bin/find /directory_of_the_files -name filename.tmp -exec /bin/rm {} \; |
Code:
find /directory/of/temp/files -name '*.tmp' -delete |
Reg: Temp files
.appled* and appledouble* files gets created in all the Folders that are accessed by the users. we have installed netalk in linux for the mac userss to acces the linux server....these temp files gets created whenever we go inside any of the folders.... i used to manually remove these files evry now n then.....i dont know abt scripts .. i just started to learn about it...but i need a script to remove these files.
i use rm -rvf .AppleD* to remove files in a folder which is of 140 gb..but still many files of these dont get removed, i need to get to the nearest folder to remove these temp files....the problem is we have big folder structure......these temp files get removed in the parent folders and child folders but not in the sub sub folders of the child folders......... |
Try
Code:
find / -name .AppleD* -exec /bin/rm {} \; |
Quote:
Code:
find / -name '.AppleD*' -exec /bin/rm {} \; |
Quote:
Code:
find / -name ".AppleD*" -exec /bin/rm {} + |
Reg :Scripts
thanx a lto everybody...
|
Quote:
|
All times are GMT -5. The time now is 12:03 PM. |