- In the previous video you've learned about EXT4.
Now let's talk about XFS,
which is the default file system on Red Hat Linux.
Mkfs.xfs is used to create an XFS file system.
And different utilities are offered,
each having a name that starts with xfs_.
If you want to have an overview,
just use XFS underscore and tap completion.
Xfs_admin is the common utility that sets default options,
like the file system label for instance, or a UUID.
Let's check it out.
All right.
Mkfs.xfs - - help.
Just to show you the different options.
And here you can also see that different options
are available and same story applies as for EXT4,
you'll hardly ever use any of these options.
The only option that is required is dev sdb whatever.
The device name where you want
to create your XFS file system.
And there we go.
The XFS file system has now been created.
You can also see the options
that have been used in order to do so.
For an overview of everything that you can do,
type xfs, dap dap, for the specific XFS utilities.
XFS does have a couple of utilities
that allow you to manage the advanced features of XFS.
Like XFS quota for instance,
which allow you to set file system space limitations
or XFS copy, which is specific alternative
to the copy utility that works more efficiently
in an XFS environment.
Now how about xfs info on dev sdb2?
That is just printing the information
from the file system superblock.
So the generic properties.
XFS admin is convenient as well.
Use minus minus help,
even if it's telling you that this is an illegal option.
It'll print what you can do.
And here are the options, of which minus uppercase L
and minus uppercase U are the most common ones.
We'll talk about these later.
Just as a final test, mount dev sdb2 on slash mnt
to check that we can mount it.
And yes, we can mount it.
So we are in business with the XFS file system.