What Is Sys Block in Linux?
Contents

The files in /sys/block contain information about block devices on your system. Your local system has a block device named sda , so /sys/block/sda exists. … So, each block device will have its own stat istics file, hence the different values. See kernel docs for more details.

What is the use of sys folder?

/sys is an interface to the kernel. Specifically, it provides a filesystem-like view of information and configuration settings that the kernel provides, much like /proc . Writing to these files may or may not write to the actual device, depending on the setting you’re changing.

What is the SYS directory in Linux?

/sys : Modern Linux distributions include a /sys directory as a virtual filesystem, which stores and allows modification of the devices connected to the system. /tmp :System’s Temporary Directory, Accessible by users and root. Stores temporary files for user and system, till next boot.

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest