Re: [mh] MH How to clean up and free disk?
"Marc Elliot Hall" <[email protected]>
| Newsgroups | gmane.comp.misc.misterhouse.user |
|---|---|
| Message-ID | <[email protected]> |
Have Ubuntu do the work for you. From your command line: du -mx | sort -n | tail -40 will start at your current working directory and show you disk utilization in mebibytes (not crossing a filesystem boundary), sort the output numerically, and give you the largest 40 offenders. Then you can decide what to keep. You can also add a grep clause to reduce the size of the list that needs sorting. In this example, I'm looking for any file name that contains the string "logs" or ends with "log": du -mx | egrep "logs|log$" | sort -n | tail -40 Once you've identified the appropriate files and directories, use rm to delete them. To save yourself aggravation, you can use logrotate to automate future cleanup. -- Marc Elliot Hall www.hallmarc.net Enterprise System Architecture and Implementation On Wed, December 5, 2018 8:51 pm, Gianni Veloce via misterhouse-users wrote: > Help pleaseMy hard disk is found at 99% capacity and needed urgently to free some > space as upgrade hardware is not an option for me as running on an old laptop but > having plan to go to RPi soon (maybe I have to speed up this)Being on Ubuntu Linux I > deleted some files like caddx.log.xxxxx and caddx.out.xxxxx under /tmp but this only > gave me only 2% back :(Is there any other files (not only in MH but also in O.S.) to > remove to help out the situation? > maaany thnxGV________________________________________________________ > To unsubscribe from this list, go to: > https://lists.sourceforge.net/lists/listinfo/misterhouse-users > > ________________________________________________________ To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users