Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the type of Linux file system

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "what is the type of Linux file system". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is the type of Linux file system".

While it may not be obvious to the average user, Linux file systems have changed significantly over the past decade or so, making them better resistant to corruption and performance problems.

Most Linux systems today use a file system called ext4. "ext" stands for "extended extended", and "4" indicates that this is the fourth generation of this file system. Features added over time include the ability to provide larger file systems (currently up to 1000000 TiB) and larger files (up to 16 TiB), more resistance to system crashes, and less fragmentation (splitting a single file into blocks with multiple locations) to improve performance.

The ext4 file system also brings other improvements in performance, scalability, and capacity. Metadata and log checksums are implemented to enhance reliability. Timestamps can now track nanosecond changes to better stamp files (for example, file creation and last update times). Also, two bits have been added to the timestamp field, and the problem of 2038 (the field that stores the date / time will be flipped from maximum to zero) has been postponed to more than 400 years later (to 2446).

File system Typ

To determine the type of file system on the Linux system, use the df command. The-T option in the command shown below shows the file system type. -h displays the "readable" disk size. In other words, adjust the units of the report (such as M and G) to make people better understand.

$df-hT | head-10Filesystem Type Size Used Avail Use% Mounted onudev devtmpfs 2.9G 0 2.9G 0% / devtmpfs tmpfs 596M 1.5m 595m 1% / run/dev/sda1 ext4 110G 50G 55G 48% / / dev/sdb2 ext4 457G 642M 434G 1% / appstmpfs tmpfs 3.0G 03.0G 0% / dev/shmtmpfs Tmpfs 5.0M 4.0K 5.0m 1% / run/locktmpfs tmpfs 3.0G 0 3.0G 0% / sys/fs/cgroup/dev/loop0 squashfs 89M 89M 0% / snap/core/7270/dev/loop2 squashfs 142m 142M 0% / snap/hexchat/42

Note that the file systems of / (root) and / apps are both ext4, while / dev is the devtmpfs file system (an automated device node populated by the kernel). Other file systems are displayed as tmpfs (temporary file systems that reside in memory and / or swap partitions) and squashfs (file systems that are read-only compressed file systems for snapshot packages).

There is also the proc file system, which stores information about running processes.

$df-T / procFilesystem Type 1K-blocks Used Available Use% Mounted onproc proc 000-/ proc

When you tour the entire file system, you may encounter many other file system types. For example, when you move to a directory and want to know its file system, you can run the following command:

$cd / dev/mqueue; df-T .Filesystem Type 1K-blocks Used Available Use% Mounted onmqueue mqueue 000-/ dev/mqueue$ cd / sys; df-T .Filesystem Type 1K-blocks Used Available Use% Mounted onsysfs sysfs 000-/ sys$ cd / sys/kernel/security Df-T. Filesystem Type 1K-blocks Used Available Use% Mounted onsecurityfs securityfs 000-/ sys/kernel/security

Like other Linux commands, here. Represents the current location of the entire file system.

These and other unique file systems provide some special features. For example, securityfs provides a file system that supports security modules.

Linux file systems need to be able to withstand corruption, withstand system crashes, and provide fast and reliable performance. Improvements provided by several generations of ext file systems and new generations of dedicated file systems make Linux systems easier to manage and more reliable.

Thank you for reading, these are the contents of "what is the type of Linux file system?" after the study of this article, I believe you have a deeper understanding of what the type of Linux file system is, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report