How to clear unnecessary files in the system

Source: Internet
Author: User
Article Title: how to clear unnecessary files in the system. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Taking Linux From Scratch as an example, it is generally not recommended for beginners to do so.

If the LFS partition is very small, it is also good to know what is unnecessary and can be deleted. The executable programs and library files that have been installed so far contain about 70 MB of unnecessary debugging symbols. Run the following command to delete these symbols:

Strip -- strip-debug/tools/lib /*

Strip -- strip-unneeded/tools/{, s} bin /*

The above command skips about 20 files, and the report does not recognize these file formats, most of which are scripts rather than binary files.

Never use -- strip-unneeded on the library file; otherwise, it will damage its static version, so you have to compile all the tool chain software packages from the beginning.

Deleting a document also saves 20 MB space:

Rm-rf/tools/{info, man}

Now $ LFS has at least 850 MB of space available. You can compile and install Glibc in the next chapter. If there is enough space to compile and install Glibc, then compile and install other software packages.

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.