Linux file system

Source: Internet
Author: User

The Linux file system consists of three parts: file name, Inode, block (really save data)

[[email protected] desktop]$ stat/etc/passwd  File: '/etc/passwd '  size:2358      blocks:8          IO block:4096< C4/>regular filedevice:fd00h/64768dinode:35729195    links:1access: (0644/-rw-r--r--)  Uid: (    0/    root   Gid: (    0/    root) context:system_u:object_r:passwd_file_t:s0access:2017-11-23 16:49:50.024014004 + 0800modify:2017-11-22 11:04:58.060385394 +0800change:2017-11-22 11:04:58.062385394 +0800size File size (bytes) blocks File size (number of blocks) UID file owner's Uidgid file owner's gidaccess file permissions (read-write execution) access=atime access time Ctime=atime change time mtime=modify file modification

View all inode information

$>>df-i

[Email protected] desktop]$ df-i Filesystem                inodes  iused    IFree iuse% mounted On/dev/mapper/centos-root 18317312 128006 18189306    1%/devtmpfs                  229760    387   229373    1%   /devtmpfs 233582 233572    1%/dev/shmtmpfs                     233582    572   233010    1%/runtmpfs                     233582   233569    1%/sys/fs/cgroup/dev/sda1                 512000   511670    1%     /boottmpfs 233582   233542    1%/run/user/1000tmpfs                     233582      1   233581    1%/run/user/0tmpfs                     233582     18   233564    

To see when a file has changed

$>>ll-i or $>>ls-i[[email protected] desktop]$ ll-itotal 7075635722702-rw-rw-r--. 1 enmoedu enmoedu 72448981  vmwaretools-10.0.10-4301679.tar.gz71023474 drwxr-xr-x. 9 Root    root        4096  Vmware-tools-distrib[[email protected] desktop]$ ls-i35722702 vmwaretools-10.0.10-4301679.tar.gz  71023474 Vmware-tools-distrib

Common Linux file systems

EXT4:EXT3 's upgraded version, drastically changed
NFS: Network file system is primarily used for remote file sharing
ISO9660: The file system used by most discs
XFS: Log file system, support for ultra-large capacity files, is the default file system for CentOS7

XFS and Ext File system performance Comparison

XFS is a log file system $>>dhclient  get IP address format into XFS file system 1.$>>mkfs–t xfs/dev/sdbs//Generally speaking, the new formatted file system is unusable, requires//Mount 2 . $>>mkdir/sdb3. $>>mount/dev/sdb/sdb/4. $>>DF//Check if Mount succeeded 5.$>>df–t//See if Mount succeeded

Linux file system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.