Thanks man! Owner Author. This script appears designed for a headless no desktop setup so removes unnecessary things accordingly like the desktop packages. Always read and understand scripts before you run them from the Internet. Nice work. It worked on Ubuntu Nearly 20GB cleaned.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Clean all the log file. Getting rid of partial packages. Getting rid of no longer required packages. Getting rid of orphaned packages. Here you can find other information. If your system is a testing system or you don't really care what is in the log you can clear the log.
But if you any of your application gives a error logs are the only place where you will find complete explanation. If you are certain that none of the logs is useful for you, you can always clear them, just try this. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Learn more. Ask Question. I'm working on Ubuntu So it is possible to keep the kern. I mean I want to remove the kern. On Ubuntu Inside that file, you'll see the two following lines:.
Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Then, you can force the logs to rotate and delete automatically if they reach a certain size, using logrotate.
Note that rotate 7 means your system will only keep 7 total syslog backups so it can only ever take up 7GB of space Note: you can change maxsize , rotate N , and other settings to customize your logs -- use the command man logrotate to see more. While you're at it, you may want to add the same setting in the second part of the file, which governs the behavior of other log files e.
This setting will make it so that each of these other log files will only take 4GB in total.
0コメント