How does the Ubuntu 15.04 system clean up the system junk files?

Source: Internet
Author: User
Tags browser cache

Linux System file Management is relatively efficient, resulting in the so-called "garbage" is relatively small. However, after a period of running and upgrading, there will always be some files who do not need the "garbage", such as software installation package, browser cache, corrupted documents and so on. We can use the command to clean up, but also can be used with the software's own cleaning function.

 1. Clean command to remove all software installation packages.

In the event of a normal network connection, we execute the Software installation command, and after the software installation is finished, the package with the. deb suffix is no longer needed. This situation is similar to the situation on the Windows platform, mobile phone's Androping table. We can periodically clean up the software packages that are no longer needed.

CTRL + ALT + T combination to pull out the terminal, type the following command and execute:

sudo apt-get clean

You can delete all software installation packages that are stored on the local computer.

As the figure shows, it actually deletes all the files in the/var/cache/apt/archives directory that end with. Deb.

 2. The AutoClean command deletes the software installation package that is no longer available.

This command is similar to clean, except that it selectively deletes packages that are no longer available (for example, you can no longer download from the software warehouse to the current version of the package, or newer versions).

Execute within the terminal:

sudo apt-get AutoClean

You can remove software installation packages that are no longer available.

  3, remove command to delete specific software.

Similar to the program Uninstall command in Windows Control Panel, the Remove command removes the software.

Execute within the terminal:

sudo apt-get remove software name

You can delete the appropriate software.

 4, with the Purge command to remove the software "remnants."

The Purge command is another version of the Remove command that deletes the package's remaining settings while deleting the software itself. Similar to "software residue" cleanup after removing software in Windows environment.

To execute in a terminal:

sudo apt-get purge software name

The software is deleted and the configuration file for the software is deleted.

  5. The Autoremove command deletes dependent packages that are no longer needed.

For example, we install software A, but a relies on package B, and when a is installed, B must also be installed. One day, we no longer need software A and we remove it, and we can use the Autoremove command to delete software B that was originally installed to satisfy a dependency. It sounds a little ladder.

In summary, you can delete a dependent package that you no longer need by executing the following command:

sudo apt-get autoremove

This is common when the kernel is upgraded: The new kernel is installed, and the old kernel can be removed with the above command.

  6, clean up the browser's cached files.

Take the FireFox browser as an example, click on the browser in the upper right corner of the three-bar--> history--> Clear the most recent history, in the pop-up dialog box can choose to clear the most recent or full browsing history.

 7, clear document cache file.

If the computer is suddenly forced to shut down or reboot during the viewing of the document, the document you are viewing will be in the current working directory, leaving a cached file that begins with ". ~". If these cached files are not necessary for recovery, they can be deleted.

Open the File window on the Launcher bar, navigate to the destination folder, press Ctrl + H to display the hidden files, and the hidden files under the current folder will reveal their true colors, such as the document cache file above. It can be deleted as appropriate.

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.