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 one 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 our 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.
All right, 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 col ring buffer, which
looks something like this, and you can see the output over here.
Now the second command is cat space.
Proc 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
caches, etc., etc..
So this is the information about the CPU.
It says Intel core i7 910 CPU at 2.6 gigahertz CPU.
Perfect.
Now similar to the CPU information, let us understand the memory information, which is the RAM information
for that.
Instead of CPU, you simply have to type.
Mm.
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 etch.
Now this displays the free and used memory hyphen etch stands for human readable format hyphen MX that
we are going to see currently stands for.
To see the output in M.B. and hyphen G stands for.
To see the output in GB.
So let me just simply first type etch 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 hyphen m, you will be able to see the output in MX.
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 a 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 are being connected for that, you simply have 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 an 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 SNMP iOS hardware information from the bios
that also can be seen using the command, which is the D 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 do and you will be able to see the disk
usage by each file.
In case you want a cleaner output, you can simply type d f 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 def slash PSD one 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.