Scripts for Windows and Linux cleanup temp files __linux

Source: Internet
Author: User

The project needs to be packaged but just use the right key to the solution-"clean up, it is not clean."

Use this script instantly clean, useless folders can be manually deleted.

Copy Paste as Clean.bat file, copied to the engineering root directory, double-click the execution can be easily read, you can manually increase or decrease the file type.

Linux to chmod 777 Clean.bat

: The:D OS automatically runs the following:: vs temporary files del/s/f/q *.obj del/s/f/q *.pch del/s/f/q *.ilk del/s/f/q *.idb del/s/f/q *.bsc de l /s /f /q *.exp
del /s /f /q *.tli
del /s /f /q *.tlh
del /s /f /q *.sbr
del /s /f /q *.sdf
del /s /f /q *.log
del /s /f /q *.tlog
del /s /f /q *.ipch
del /s /f /q *.pdb
del /s /f /q *.htm
del /s /f /q *.lastbuildstate
del /s /f /q *.unsuccess Fulbuild del/s/f/q *.cache del/s/f/q *.ncb del/s/f/q *.suo del/s/f/q *.manifest:: Temporary files generated by Linux gcc del/s/F /q *.depend
del /s /f /q *.o
del /s /f /q *.d
del /s /f /q *.core
del /s /f /q *.gch




#linux自动运行下面的
find .
-name "*.depend"-exec rm-rf ' {} '; Find.
-name "*.O"-exec rm-rf ' {} '; Find.
-name "*.D"-exec rm-rf ' {} '; Find.
-name "*.core"-exec rm-rf ' {} '; Find.

-name "*.GCH"-exec rm-rf ' {} '; Find.
-name "*.obj"-exec rm-rf ' {} '; Find.
-name "*.pch"-exec rm-rf ' {} '; Find.
-name "*.ilk"-exec rm-rf ' {} '; Find.
-name "*.idb"-exec rm-rf ' {} '; Find. -name "*.BSC"-exec RM-rf ' {} ' \; Find.
-name "*.tli"-exec rm-rf ' {} '; Find.
-name "*.sdf"-exec rm-rf ' {} '; Find.
-name "*.log"-exec rm-rf ' {} '; Find.
-name "*.tlog"-exec rm-rf ' {} '; Find.
-name "*.ipch"-exec rm-rf ' {} '; Find.
-name "*.pdb"-exec rm-rf ' {} '; Find.
-name "*.lastbuildstate"-exec rm-rf ' {} '; Find.
-name "*.unsuccessfulbuild"-exec rm-rf ' {} '; Find.
-name "*.cache"-exec rm-rf ' {} '; Find.
-name "*.NCB"-exec rm-rf ' {} '; Find.
-name "*.htm"-exec rm-rf ' {} '; Find.
-name "*.suo"-exec rm-rf ' {} '; Find.
 -name "*.manifest"-exec rm-rf ' {} ';


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.