I've been working lately on an AWS EC2 instance with ubuntu. This is my first experience working with servers, so I'm really new to this.
Lately I've noticed my free space has completely filled up for some reason. When I run
df -h
it gives me
Filesystem Size Used Avail Use% Mounted on
/dev/root 7.7G 7.7G 65M 100% /
devtmpfs 479M 0 479M 0% /dev
tmpfs 485M 0 485M 0% /dev/shm
tmpfs 97M 11M 87M 11% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 485M 0 485M 0% /sys/fs/cgroup
/dev/loop1 26M 26M 0 100% /snap/amazon-ssm-agent/4898
/dev/loop0 25M 25M 0 100% /snap/amazon-ssm-agent/4046
/dev/loop2 56M 56M 0 100% /snap/core18/2128
/dev/loop3 56M 56M 0 100% /snap/core18/2246
/dev/loop4 62M 62M 0 100% /snap/core20/1081
/dev/loop5 62M 62M 0 100% /snap/core20/1169
/dev/loop6 68M 68M 0 100% /snap/lxd/21803
/dev/loop7 68M 68M 0 100% /snap/lxd/21835
/dev/loop8 33M 33M 0 100% /snap/snapd/13640
/dev/loop9 43M 43M 0 100% /snap/snapd/13831
Showing dev/root is taking up the vast majority of free space for some reason.
I'm new to linux so I don't really know what /dev/root is. Linux says it's not a directory. I suspect it may have been building up and up with data over time as I've been running my server.
Does anyone know why this may be happening or how to find out? What can I do to make space without doing anything I'll regret? Thanks in advance