![]() ![]() ![]() ![]() The -T option prints the filesystem type as well. Simple Ways to Free Up Space in Ubuntu Linux Step 1: Remove APT Cache Step 2: Clean Journal Logs Step 3: Clean Up unused Packages Step 4: Remove Old Kernels. f forces the write permissions if missing. You can use shred to wipe your drive using the command below: sudo shred -vfz /dev/sde. sudo apt-get remove linux-image-xxxxxĪs an alternative, an easier way to clean up these old kernels is to use 'autoremove'. The df utility displays the disk space usage on all mounted filesystems. Suppose you are selling your disks or you need to erase your portable drive. Just replace xxxxx with the version of Linux you want to delete. Next, they must identify their oldest kernels and execute the following command to remove the previous versions. This allows us at each login to choose with which version of the Kernel we want to start the system, although by default it will always start with the most recent one.Īlthough the ideal would only be to work with a single Kernel, it is advisable to leave the current version and a previous one for any backup issue and delete all the others above.įor this we must type the following command sudo dpkg 'linux-image *' -list var/cache/apt/srcpkgcache.bin Remove old kernels from the systemĪs we should know, the Linux Kernel is the heart of the system, but it is also known that it is updated every so often, so they are released new versions which are installed in the system displacing the old versions which remain stored without being eliminated. var / cache / apt / archives / partial / * This command will clean up the following system directories: This command summarizes the space usage for a specified directory or the current directory if none is specified. Use the du command to analyze disk space at a more granular level. Read our complete collection of recommended free and open source software. History and temporary file cleaner for KDE 4. To remove all this garbage from the system, just run the following command from the terminal: sudo apt-get -s clean How to Check Linux Disk Space with the du Command. Delete unnecessary files from the system. These packages are stored in the / var / cache / apt / archives folder. So cleaning these packages is recommended to save disk space, improve your PC performance, and speed up boot times. If the installation was successful, Ubuntu does not delete these packages and they remain cached. Whenever some applications or even system updates are installed, these are downloaded by the package manager and then stored in the cache before installing them, in case they need to be installed again. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |