Hello,
and a really big welcome to you to this module from Pluralsight where
we take a look at managing disks and partitions.
My name is Andrew Mallett,
and I'm going to be your instructor as I guide you through this module.
Now the first thing I hear you ask is, exactly what are we going to cover?
Well, good question.
As we work our way through this module,
we're going to investigate disk storage within our Linux systems.
Now, we're going to be taking a look at our hardware,
so we're going to be able to list our hardware devices,
create disk files to act as storage devices, as well as being able to
list the available and used storage on our devices.
We're also going to be taking a look at partitioning.
We may not want to use a complete disk.
So we're going to look at how we can create and read
partition tables on disks and even encrypt those
partitions where we want to add security.
So when you're ready, sat comfortably, we shall begin. When we look at
Linux storage, we'll be concentrating in this module on local storage,
but we'll also be able to see in later modules how we can go through and
connect to network attached storage.
So remote storage might be something like storage area networks,
but also might be sharing out filesystems with protocols such as
CIFS or NFS, the UNIX filesystem server.
The first thing, when we're looking at some of our very basic
commands to list out our hardware, one of the tools that we can use
is the lsblk command, so listing our block devices or storage
devices. And of course, those storage devices can also be seen within
the dev, or device, directory.
If we're looking at SD devices, so our SCSI disks, we're going to be able
to see those block devices as sd and then asterisk,
so sda, sdb as our disks, and then sda1, sda2, and so forth as partitions.
We're probably very familiar with our ls command, but do you
know there are even options that we may not have come across?
And here, we look at the capital S being able to sort our files
based on their file size.
Obviously, reverse searching means the largest ones are going to show last,
which is going to be the bottom of our ls display, so it
becomes very easy to see the large files at our screen
because they are left at the end of ls.
We'll also see how we can go through and look at the size of a directory.
We wanted to check how much space the etc directory is consuming.
Well, we can then use du for disk usage and look at the
summary in human readable format.
If we don't put the s on,
we get to see every file in the etc directory, which we probably don't want.
Now I'm hoping that this has been a great start for you, but it
really has only been a start. And after all,
we're only looking at PowerPoint slides.
Hopefully, you're going to join me in the demonstration where we're going
to be working on our Alma Linux system to begin with so we can go through and start seeing some of these commands.