Ubuntu is using snaps, shown below
Core applications packaged as snaps
Shown here
So, my question is, that since snaps are shown using the df
command, and they apparently flood df
.
It's just flooding df, and makes it harder to use. Is there a way to stop it? I'm assuming since snap is planning on being used more frequently it will either no show in df, or df will become a much longer command with more pipes.
df | grep -v "/snap"
or similar, but aside from that, no,. Snaps are mounted and so will show up in things which show what is mounted.df
from listing snaps with the following:df $(cut -d' ' -f3 /proc/mounts | sort -u | grep -v 'squashfs' | sed 's/^/-t /')
alias df='df | grep -v "/snap"'
df
results to grep & removing snaps, the cleaner solution is IMHO to use grep'sgrep -v
option to exclude file systems. Snaps use squashfs. Thus you can define an alias likealias df='df -l -BM -Tx"squashfs"'
to get the non-snap-list as a default. See [docs.snapcraft.io/the-snap-format/698] for a definition.