Tip: automatic cleaning of temporary files in UNIX-based systems
Tips / / December 19, 2019
The Council sent to our readers Efimochkin Eugene.
Software development, but often just work on the computer when connected to the Internet often revolves in the cycle "to download something - unpack - start - evaluate - use or throw. " For programmers is the source projects, working documentation for other netizens - books, documents and programs. The essence is: most downloaded - temporary garbage (or an archive, from which only one is the use - unpack, and then he was no longer needed, or a file, the value of which is yet to be established). Healthy laziness keeps people away from the immediate removal of such files, resulting in a home folder and desktop full of more
of the useless junk, from which even if something and need - simply download it again, than found in the general pile.
Moreover, the attempt to clear the debris becomes a powerful scavenger of time - after all it is necessary to look at each particular file, remember that you're talking about it decided to refrain from attempts to find
the updated version or view the results of its use, and finally removed. And so with each file.
Owners of computers based on Unix-like operating systems, I can offer this advice. Never to waste space on the storage of such "good" and the time for its removal, I set up all of their browsers so that they downloads files to the / tmp / (it is available to the user to write to the most Unix-like systems and emptied every reboot). Files are fully accessible and even have a very short address, user-friendly, even for a set of command line. I unpack the downloaded archive to the same place in / tmp /, creating subfolders as needed. The / tmp / recover as all e-mail attachments. Of course, if the file during the evaluation recognizes "netlenkoy" and accepted for practical use, it is necessary to move from the folder / tmp /.
Council poorly applicable to systems aimed at long uptime and rarely reboots for whatever reason, but is ideal for working desktops under Linux or BSD.