with Ubuntu Netbook
on the Internet I found an interesting shell script in order to free up space on those netbooks (especially the early models with SSDs with a few GB) who have installed Ubuntu (its version for Netbooks). This shell does nothing but delete cache installation programs, old versions of the Linux kernel, cache configuration and free up any trash. This is to allow updates to make Ubuntu even fuller.
Use a software called aptitude, at least in my case I had to install separately. I did it from a terminal with apt-get install aptitude. Then create the shell script (call it cleaner.sh) and put this code below:
# / bin / bash
OLDCONF = $ (dpkg-l
METALINUXPKG="linux-(image YELLOW $ echo-e "Removing old kernels ..."$ EndColor
$ sudo aptitude purge OLDKERNELS
YELLOW $ echo-e" Emptying Every trashes ..."$ EndColor
rm-rf / home / *. / local / share / Trash /*/** &> / dev / null
rm-rf / root / .local / share / Trash /*/** &> / dev / null echo-e $
YELLOW "Script Finished!" $ EndColor
0 comments:
Post a Comment