[lug] How to ignore snap in df listings

Bear Giles bgiles at coyotesong.com
Sat Oct 10 07:14:39 MDT 2020


Thanks!

On Fri, Oct 9, 2020 at 10:48 PM Jed S. Baer <blug at jbaer.cotse.net> wrote:

> Maybe others aren't so annoyed by this as I. I run logwatch, so every day I
> get an e-mail showing me, among other things, free space on disks. It's
> quite cluttered up with snap stuff. How to fix it?
>
> The df command has the -x option, to exclude types. So, edit
> /usr/share/logwatch/scripts/services/zz-disk_space
>
> Find the line:
> $df_options = "-h -x tmpfs -x devtmpfs -x udf -x iso9660"
>
> and add " -x squashfs" to the end of the string.
>
> I also added the bash alias:
>   alias df='df -x squashfs'
>
> --
> All operating systems suck, but Linux just sucks less
>  - Linus Torvalds
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20201010/d90ba085/attachment.html>


More information about the LUG mailing list