Hello everyone and welcome to this video in this
video. We are going to run some of
the important Linux commands that have been
used into our day-to-day lives.
So to begin with we are going to run some
of the system information Linux commands
that are used and you should know
them.
So to begin with you have to start your
terminal. So this is what is called as a terminal.
So I have started my parrot OS which is based on Debian Flavor.
Now, this is again a very
famous operating system, which is used for penetration testing.
Now to start your terminal you just have to click over here
as you can see.
It will open up a terminal for you.
I have already opened our terminal and now I'm
going to execute some of the system information commands.
So to start with we're going to see a
command, which is you name. So let me just type you name
and hit enter. It says the name
of the operating system, which is Linux. Now
if type the command you name space hyphen
a it will show you
output similar to this. Now. It
displays the Linux system information as
you can see it is showing as Linux
Debian flavor paste Paradise version 5.2.0.
Parrot 1 AMD 64
SMB Debian, etc,
etc.
Now you want to see which version is installed. You
can type cat space slash
proc slash version.
And hit enter and you can see Linux version
5.2.0 -2
parrot AMD 64 similar kind
of output where you can see.
That Debian 8.3.0 -
6 is installed into this computer. Similarly.
If you are on red hat
based operating systems. You can simply type cat space.
slash Etc / red hat
- release and hit enter now. This
is not a red hat based operating system. That's why
it is saying no such file or directory.
Let's move on.
And we are going to type the next command which is up time
and hit enter. Now this command shows
you how long the system has been running as
you can see, it shows that
it has been up 28 minutes one user.
Is there and this is the average load on
the operating system.
Now if you want to see the system
hostname or sometimes also known as
the machine name. We are going to use the command which
is simply host name and it
shows you the hostname of the machine
is parrot, which can also be seen
from here. Now. This is something which is
username at the rate host name. So the
username is root if you want to verify that just simply
type who am I and it will show you
the current logged in user of this computer.
Alright, the next command is hostname space
hyphen. I when you do this, you will
be able to see the local IP address of
the host that you are
currently logged in into and you can see this is the local IP
address of this host.
Now the next command is that you
can see is last space reboot.
Now this is going to show you the system
reboot history when
when the computer has been restarted.
Now, this is Handy and helpful sometimes to
know whenever there was a system reboot
done for your computer.
Next is very simple. You can use date command
to know the current date as well as
time of your computer as you can see Friday Feb
26. This is the time which is
ist2021, which is
the year now in case you want to
see the calendar you can do that as well. Simply you
have to type the command which is c a l
and hit enter and you will be able to see the calendar
from your terminal.
Next is the command which is
simply W hit enter and you
will be able to see which user is online
currently and you can see the user which
is root is currently logged in
and online.
You already seen the command. Who am I to know which is
the current user which has been logged in into your
computer and you can see the root user is
currently logged in and using the terminal.
So this is it for this video? I hope you guys understood the
basic Linux command that can be used to
identify the system information of
your operating system in upcoming lessons.
We are going to see more commands for each specific.
Task that we are going to perform. So I hope you guys understood in
case you feel any issues into this commands.
Feel free to ask your questions or queries.
Thank you.