In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "what are the methods of ubuntu cleaning up disk space". The explanation in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian slowly and deeply to study and learn "what are the methods of ubuntu cleaning up disk space" together!
Linux hard drives aren't as lightweight as they can be. For example, APT package manager saves package files after you install them, which is a waste of space unless you plan to uninstall or reinstall them.
We've covered cleaning up disk space on Windows and disk space on Mac. A lot of things are the same-deleting temporary files, analyzing hard drive usage, seeing which apps are taking up the most space.
delete temporary files
BleachBit is pretty much a CCleaner on Linux. It scans your computer for unwanted temporary files and automatically deletes them to clear space. It finds cache, browsing history and temporary files on your computer. You can install BleachBit via the Ubuntu Software Center.
Remember, this tool is not capable of removing APT packages and other system-level stuff if you don't open it with root privileges. You can run sudo bleachbit as root by running it on the terminal. (We used to recommend gksu command, which has been removed on Ubuntu) Related reading: ubuntu sudo and gksu difference
The best feature of BleachBit is its ability to automatically perform some of the usual things only experienced Linux users can do. For example, execute autoclean, autoremove, clean commands on APT packages you no longer need, and delete cached package files that have been installed. You don't need package files that have already been downloaded--just like Windows doesn't need to save the installer after you install the software. Although unlikely, you may need to reinstall some files, at which point APT packages will be reinstalled.
Analyze hard drive usage
Ubuntu comes with an image overview that scans your system and shows you the directories and files that take up the most space. This can be very helpful when you're cleaning up space-have you forgotten a virtual machine or other large file in your home directory? This tool can find them and visually show how much space they occupy.
This tool also comes with it-boot disk usage analyzer to open it. If you are using a non-Ubuntu Linux branch, it may also come with it as part of GNOME. If you can't find it, you can try installing the Baobab package.(sudo apt-get install baobab)
See which app takes up the most space
The apps you install--apps installed as packages--also take up space on your hard drive. If you have a lot of apps installed, they may take up a lot of space. To determine how much space each package takes up, we can use Synaptic package manager. It used to be part of Ubuntu, but was removed to make room for other tools. You can open the Ubuntu Software Center to find Synaptic installed. (You can also use sudo apt-get install synaptic)
If you are using its deb-based branch, you can also use synaptic. If not, you may need to use a different package management tool.
To see which package is taking up the most space, select Status > Installed and you will see a list of packages installed. Next, click Size column to sort the list by package size. (If you don't see the Size column, click Settings > Preferences and check Size column under Columns and Fonts.) You can also move it to the top of the list and that column will appear on the far left.)
Of course, that doesn't mean you can uninstall a package just because it takes up a lot of space. Some software packages are critical to the operation of the system, such as the Linux kernel. However, we can see that packages like LibreOffice, Firefox, and Thunderbird take up a lot of space inside--if we're really tight on space and we don't use them much, we can remove them to free up space. We can reinstall them later.
Delete the old kernel
Ubuntu saves the old Linux kernel after installing the new version. In the boot directory that appears at boot, you can choose boot into the old kernel. When something breaks in the new Linux kernel, you can go back to the old kernel--but if something breaks in the new Linux kernel, you can go back to the old kernel.
The new kernels work fine, and the old ones are just taking up space.
Note: Before deleting any kernel files, make sure you have restarted after installing the new kernel and are not using the old kernel. Ubuntu automatically boots back into the latest kernel, but if you haven't restarted since the kernel update,
You will still be using the old kernel.
Removing old Linux kernels is very simple using Synaptic package management tools. Using Ctrl+F in Synaptic, tell it the name of the file you're looking for linux--yes, there's a dash. Then sort by package name and you'll see the approximate packages at the top of the list.
vci1pbnN0YWxsZWQtbGludXgta2VybmVscy1pbi1zeW5hcHRpYy1vbi11YnVudHU=">
Remember that we have several different versions of linux-image-extra, linux-headers and linux-packages. We can remove older versions of these packages-each kernel has several different packages associated with it.
Select the old version, right-click, and mark it as removed. Then just apply the modifications and you can free up that space.
Remember--only delete old kernel files! Leave the latest version or your system won't boot. For example, in the image below, we want to leave 3.11.0-18 and remove 3.11.0-12 and 3.11.0-15.
version of the document. According to Synaptic, removing these two kernels frees up 500MB of space.
If you are operating on Linux services, you can also free up space by clearing or shrinking some large log files. If an application generates a lot of log entries and you don't need them, you can save space by modifying its configuration to log only the most important events.
Thank you for reading, the above is the content of "ubuntu clean disk space methods", after learning this article, I believe that we have a deeper understanding of ubuntu clean disk space methods, the specific use of the situation also needs to be verified. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.