我正在运行Ubuntu 16.04。我安装了一些快照。在系统监视器中查看,似乎每个快照都安装了多个版本,并且每个版本都在占用硬盘驱动器上的空间。
在我的主文件夹中,文件夹下面似乎只有几个空文件~/snap
夹。
但随后看来,每个快照的二进制文件实际上都位于下/snap
。
这是我的三个问题。
~/snap
是什么?/dev/loopX
文件是用来做什么的?I know that there should be only one question in each post but in this case I think the questions are dependent on each other.
Snaps are squashfs images that are mounted into place, which is what you're seeing there. They are presented as disks which are 100% full, since each image is only as large as necessary to hold its data.
~/snap
used for?Snaps are (typically) confined, by default limited to a few areas when it comes to reading/writing. ~/snap
holds snaps' user data (e.g. config files, etc.) since they can't by default write to $HOME
.
/dev/loopX
files used for?循环设备是用于使文件可作为块设备访问的设备,例如在安装快照(squashfs)文件时。因此,当您安装卡扣时,它会被安装,并使用一个循环设备。更新快照后,它会保留三个修订版本(当前修订版本和两个旧修订版本),以防您要还原,因此这些旧修订版本也在使用循环设备。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句