I run the command df -h
and it showed that udev
has a size of 471M and the other 5 tmpfs
have an estimated size of 1.1G. What should I do to them?
I run the command df -h
and it showed that udev
has a size of 471M and the other 5 tmpfs
have an estimated size of 1.1G. What should I do to them?
udev
andtmpfs
in the output ofdf
command refer to filesystem types. You're probably seeing something like this:tmpfs
- essentially is a virtual filesystem located in RAM instead of a disk device. Since it's a filesystem, data saved there has a certain order, just like a regular filesystem for a disk storage would have, however the files reside in memory and are not persistent (that is, those files will be gone next time you power off the computer - and it's OK, that information is necessary only for the duration of the system running and no reason to store data on disk). In some other Linux distributions you might see/tmp
directory serve as a mountpoint for one suchtmpfs
filesystem.udev is also a filesystem, which is also virtual, however there's many more pieces to the overall udev system. Information stored in this filesystem is of course related to the devices files - aka the interface between actual physical device and the user. You can read more about it on a related question. Interesting behavior of this filesystem is that data doesn't really accumulate in certain files when you write to them - this is different compared to regular disk filesystems. For instance, consider the character device
/dev/null
or/dev/tty1
.As for "What should I do with them?" question, the answer is "nothing". For a casual user they're not interesting. They run from RAM, they don't eat up actual disk space, and they play somewhat important purpose in the system. Software developers, sysadmins, and advanced users - they'll have a good reason to create another tmpfs for their purpose or they'll have a reason to poke around
/dev
or modify the configuration/rules for howudev
treats newly added devices to the system. But of course - those types of users do have a reason to "do something" about these filesystemsNote that although
/dev/sda1
appears in Filesystem column, it is actually a device file. What actually is on that device represented by/dev/sda1
might be ext4 or NTFS filesystem, and you can see that withlsblk -f
ordf -T
command.