Re: [mh] MH How to clean up and free disk?

Gianni Veloce via misterhouse-users <[email protected]>
Newsgroups gmane.comp.misc.misterhouse.user
Message-ID <[email protected]>
 Thanx MateVery helpfull command indeedI deleted quite some old files especially under misterhouse/data directory and can survive for bit more until I move to RPi
GV

    On Thursday, December 6, 2018, 4:57:58 PM GMT+2, Marc Elliot Hall <[email protected]> wrote:  
 
 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

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.