Hello, and welcome. So now
we are going to continue our commands. And in
this lesson. We are going to see the hardware
information commands for our Linux operating
system.
Now before going to those commands, let me
show you in command, which is very important and is
very very helpful and handy, which is
the history command Now by typing history
onto your terminal you are going
to know all the commands that you have previously executed
onto your terminal. So let
us simply type history and hit enter and you
can see the commands that we have been
executed into our computer.
This is very helpful to know what
were the previous commands that we have executed into
a computer as you can see. I have executed a
lot of commands into my computer in my
history, which can be seen from here.
Perfect. Now let's move forward. Let me
just clear the terminal for you for that.
You need to type the command which is clear and
hit enter.
Alright, so the First Command of this
lesson is d m e s
g now when we type this
command we are going to display the messages
in the kernel ring buffer, which
looks something like this and you can
see the output over here.
now
the second command is cat space.
Rock
space CPU info now,
you must have guessed it right this command
is used to display and
know the CPU information as you
can see over here the processor the vendor ID
the CPU family model the
CPU megahertz Kesh eyes,
etc. Etc. So this is the information
about the CPU, which says
Intel Core i7 9th. Gen
CPU at 2.6 gigahertz CPU perfect
now similar to the CPU information,
let us understand the memory information,
which is the ramen formation for that
instead of CPU. You simply have to type mem. It
stands for memory.
And hit enter and here you
can see the memory which has been allocated to
this CPU and you can
see these are all the details of the memory.
And you can see the memory total the
memory free the memory which is available, etc.
Etc.
Perfect. Let's move forward and now we
are going to see the command which is free space hyphen
H. Now this displace
the free and used memory hyphen
H stands for human readable format
- M that we
are going to see currently stands for to see
the output in MB and hyphen G stands
for to see the output in GB. So let
me just simply first type h and hit enter and you
can see the total memory which has been assigned is
2.9 GB. How much is
used? How much is free Etc?
And you can see the output in GB if
I type - M you will be able to see
the output in MBS.
I hope this is clear. Now. Let's move
forward now. We are going to see the command to
display the PCI devices if connected.
For that you have to type LS PCI.
and
space hyphen TV and you can see if any
devices that are being connected to
my operating system and you can see there are
few network adapters, which
have been connected as you can see the network
controller the USB controller the
VMware virtual machine communication interface,
which has been connected Etc.
Now if you want to see the USB devices that
have been connected for that. Do you simply has to type
LS USB?
USB space hyphen TV.
And if any USB devices if connected you
will be able to see over here now. I
have not connected any external device. You can simply
connect a external device and you will be able to
see the external device over here.
Perfect. Now moving forward if you want to
display the DMI or SMB iOS
Hardware information from the BIOS that
also can be seen using the command
which is DM ID code and
hit enter and you can see the BIOS
information over here.
Perfect. Now if you want to see the
disk usage, you can simply type du and you
will be able to see the disk usage by
each file in case you want a cleaner
output. You can simply type DF and you
will be able to see the disk usage of
the file system of each disk that
has been attached here. You can see Slash tab
slash sga1 which is being used
25% which is also mounted on
slash boot, which we are currently using.
So this is how you can get the system
information about the operating system
that you are using as well as the hardware information. I
hope you guys understood and in case
you have any issues, feel free to ask into the
Q&A section. Thank you.