tmp is a temporary file generated by various software or systems, which is often referred to as a junk file. tmp files can be deleted, and not deleting them for a long time will slow down the computer and cause lags. Deletion method: 1. Press the "Win R" key to open the "Run" dialog window; 2. Enter "cmd" and click the "Enter" key; 3. Execute "C:UsersAdministrator>del /f /s /q %systemdrive% *.tmp" command, the system will automatically delete all tmp files.
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
What file is tmp?
tmp is the abbreviation of temporary, which is a temporary file generated by various software or systems, which is often referred to as a junk file. Temporary files generated by Windows are essentially the same as virtual memory. However, temporary files are more targeted than virtual memory and serve a certain program alone. This leads to two problems: one is that it takes up space, and the other is that it causes problems after deletion. Risk of program failure.
Temporary files: Created when you download and install uninstall software, open files in email and instant messaging programs, or transfer files. Usually, programs that create temporary files delete them when they are finished, but sometimes these files are retained. Temporary files may be retained for a variety of reasons: the program may be interrupted before completing the installation, or it may crash on restart.
Why create a tmp file?
The program will create this file mainly for backup purposes. For example, when you edit a document in Word or process a dense Excel document, the program will create a tmp file every once in a while (it looks a bit like some kind of caching function). However, when you finish working and close the program normally, the program will automatically delete the tmp file it created. However, if your program closes unexpectedly (forced shutdown, power outage, accident, etc.) then this tmp file will be saved.
Usually its location is C:\Windows\Temp
Can the tmp file be deleted?
The tmp file is the system The temporary file generated can be deleted, and if it is not deleted for a long time, it will slow down the computer and cause lag.
Method 1:
1. First create a new text document on the computer desktop, and then enter the content:
@echo off del "%tmp%\*.*" /s /q /f FOR /d %%p IN ("%tmp%\*.*") DO rmdir "%%p" /s /q
2. Then Save as, the file name suffix should end with .bat suffix, and select "all types" for the save type below. Place the saved file on the desktop first;
3. Then click Run and enter the "shell:Startup
" command;
4. Finally, copy the .bat file on the desktop to the folder, which is the startup folder. Then every time you turn on the computer, the system will automatically clean up temporary system files.
Method 2:
1. Press the "Win R" key to open the run dialog window;
2. Enter "cmd" and click the "Enter" key;
3. Enter "C:UsersAdministrator>del /f /s /q %systemdrive%*.tmp
" command, click the "Enter" key, and the system will automatically delete all tmp files.
For more related knowledge, please visit the FAQ column!
The above is the detailed content of What kind of file is tmp? Can it be deleted?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Mac version
God-level code editing software (SublimeText3)

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.
