With Ubuntu as an example: clean up the linux system "junk" files

  1. clean command to delete all of the software installation package.

    In the case of the network connection is normal, we execute the software installation command, after installing the software to .deb suffix package is no longer needed. This, and the Windows platform, the situation on the phone's Android platform is similar. We can no longer needed on a regular basis for the software installation package to clean up.

    Ctrl + Alt + t key combination to bring up the terminal type the following command execute:

        sudo apt-get clean

    To delete all stored in all software packages installed local computer.

    As shown, it actually deletes / var / cache / apt / archives directory and all end with .deb file.

    With Ubuntu as an example: clean up the linux system "junk" files
  2. autoclean command to delete the software installation package is no longer available.

    The command and clean similar, except that it selectively remove packages: those that are no longer available installation package (for example, you can no longer download the software from the repository to the current version of the package, or later).

    Executed within the terminal:

        sudo apt-get autoclean

    To delete the software installation package is no longer available.

    With Ubuntu as an example: clean up the linux system "junk" files
  3. remove command to delete a specific software.

    Similar to the Windows Control Panel "Uninstall Command", remove command to remove the software.

    Executed within the terminal:

        sudo apt-get remove the software name

    To delete the corresponding software.

    With Ubuntu as an example: clean up the linux system "junk" files
  4. Purge command to remove the software with "residual."

    purge command is another version of the remove command, it can delete the software itself at the same time, remove the residual set package. After removing software under Windows environment is similar to the "Software residual" clean.

    Performed in the terminal:

        sudo apt-get purge Software name

    Deletes related software, and remove the software configuration file.

    With Ubuntu as an example: clean up the linux system "junk" files
  5. autoremove command to delete dependent packages are no longer needed.

    For example, we install the software A, but A dependent packages B, when process A is installed, B must also be installed.

    One day, we no longer need the software A and delete it, we can use autoremove commands to remove the software had to satisfy dependencies of A and B. installation

    It sounds how little it meant burning bridges.

    In short, you can execute the following command to delete the dependencies are no longer needed:

        sudo apt-get autoremove

    This is more common when the kernel upgrade: The new kernel is installed, you can delete the old kernel with the above command.

    With Ubuntu as an example: clean up the linux system "junk" files
  6. Clean the cache file browser.

    To FireFox browser, for example, click on the three bars top right corner of the browser -> History -> Clear recent history, in the pop-up dialog box, you can select or clear all of the recent browsing history.

    With Ubuntu as an example: clean up the linux system "junk" files
  7. Clear document cache files.

    If you view the document, the computer suddenly forced shutdown or restart, document viewing will be in the current working directory, to leave. "~" At the beginning of the cache file. If the cache file is not restored necessary, you can delete it.

    Open the file in the launcher bar window, navigate to the target folder, press Ctrl + h Show hidden files, hidden files in the current folder will then show their true colors, such as the above-mentioned document cache files. As the case may be deleted.

    With Ubuntu as an example: clean up the linux system "junk" files

Guess you like

Origin www.cnblogs.com/h-c-g/p/11099600.html
Recommended