Appendix F. Reference Table for ext4 and XFS Commands


XFS replaces ext4 as the default file system in Red Hat Enterprise Linux 7. This table serves as a cross reference listing common file system manipulation tasks and any changes in these commands between ext4 and XFS.
Table F.1. Reference Table for ext4 and XFS Commands
Task ext4 XFS
Creating a file system mkfs.ext4 mkfs.xfs
Mounting a file system mount mount
Resizing a file system resize2fs xfs_growfs [a]
Repairing a file system e2fsck xfs_repair
Changing the label on a file system e2label xfs_admin -L
Reporting on disk space and file usage quota quota
Debugging a file system debugfs xfs_db
Saving critical file system metadata to a file e2image xfs_metadump
[a] The size of XFS file systems cannot be reduced; the command is used only to increase the size.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.