Filing system information, every time you log into a Linux machine, it is very important for everyone
to know which system they are logged in in terms of what operating system is running or what hardware
it has underneath what's under the hood.
There are a few commands to find that out is if you carry out the Etsi Hadash Hadash release file to
give you the information about its operating system, the unit minus a, which will also give you the
information, but operating system and some kernel information.
And the last one is DMI Decode.
This command will also give you the information about processor memory, the hardware that's underneath
the operating system.
Let's look at EDAR, each of them, one by one, and this time you log into our Linux machine to a console.
We are.
Who am I?
We are route.
I want you to exit out of it and become yourself.
Who am I?
You are.
So where are we to create what's inside of our directory?
The same listing of the files.
Now let's make this a little bigger than you do.
Cat C RedHat release.
This is the file.
It's a text file.
It would tell you that we are running CentOS, Linux seven, Darfor and the update, one seven zero
eight.
The next command we have that we are going to learn as you name minus a.
This one tells you this is Lennix, the hostname of the Lennix.
This is the kernel version.
This is a seven, 63, 64 that tells you the date and time.
And when was this system actually was built or packaged together?
And again, what's the architecture of it?
It tells you all the information about the operating system and the last command is DMI Decode.
You will be able to run it if you are a regular user.
So see, it says permission denied.
So what we do, we become
already a ruthless clear our screen.
You want to type DMI, decode and enter it through a lot of information on the screen, if you notice
very fast.
If you scroll up so we could either do the scroll up or what's the other way to do you do DMI, decode
uppercase space, type it and do more so we could view the output one page at a time.
So here enter and here you will see the BIOS information, the virtual box, what kind of computer it
has underneath.
What's the room size?
We created the memory information, the system information to manufacture here manufacture information
base board information also appear we missed.
One thing has a serial number.
The product name is Virtual Box from where we were running an Oracle virtual box.
The manufacturers Oracle Corporation cache.
He's not specified because there is no chassy underneath and it's give you some processor and some information
about the memory.
So you are the few three basic commands that I think, and a system administrator or engineer should
know about which system they are logged into, because the first thing every time whoever logs into
the system, they should check, they should run the first commands unit minus eight, which should
give them the exact information about the operating system they are locked in.
Also in the good command is always one hostname, sorry, hostname, and this will tell you which hostname
you are locked in.
So the reason I'm saying the hostname is important because if you are tasked to reboot a Linux machine
and you log into a different Linux machine by accident and you do reboot the machine, then you could
cause a lot of trouble.
So just be careful.
Always log in and just type hostname.