![为什么我的 /var/snap 填满得这么快?](https://linux22.com/image/1031670/%E4%B8%BA%E4%BB%80%E4%B9%88%E6%88%91%E7%9A%84%20%2Fvar%2Fsnap%20%E5%A1%AB%E6%BB%A1%E5%BE%97%E8%BF%99%E4%B9%88%E5%BF%AB%EF%BC%9F.png)
nyck33@nyck33-ubuntu2304:/media/nyck33/2DA0F2CE46B4B745/fastapi/modern-apis-with-fastapi/ch05-a-realistic-api$ sudo du -sh /var/snap/* | sort -h
[sudo] password for nyck33:
12K /var/snap/bare
12K /var/snap/core18
12K /var/snap/core20
12K /var/snap/flutter
12K /var/snap/gnome-3-28-1804
12K /var/snap/gnome-3-38-2004
12K /var/snap/gtk-common-themes
12K /var/snap/kf5-5-108-qt-5-15-10-core22
12K /var/snap/kf5-5-110-qt-5-15-11-core22
16K /var/snap/code
16K /var/snap/core22
16K /var/snap/gnome-42-2204
16K /var/snap/snapd
16K /var/snap/vlc
488K /var/snap/cups
1.2M /var/snap/snapd-desktop-integration
1.2M /var/snap/snap-store
1.3M /var/snap/skype
1.4M /var/snap/discord
1.4M /var/snap/okular
1.4M /var/snap/spotify
22M /var/snap/firefox
nyck33@nyck33-ubuntu2304:/media/nyck33/2DA0F2CE46B4B745/fastapi/modern-apis-with-fastapi/ch05-a-realistic-api$ snap saved
No snapshots found.
nyck33@nyck33-ubuntu2304:/media/nyck33/2DA0F2CE46B4B745/fastapi/modern-apis-with-fastapi/ch05-a-realistic-api$
删除 ChatGPT 答案
我让 Ubuntu 决定如何安装 23.04,它给了我这个。
答案1
看起来好像/dev/nvme1n1p4
安装在和上/
。/var/snap
安装在/
意味着它是您的根驱动器,并将包含您的大多数文件,而不仅仅是 Snap 在此分区上存储文件。
由于您正在使用 GUI,我建议您运行baobab
以查看哪些内容占用了您的所有空间:
sudo baobab /