Hello, everyone, and welcome to this video.
In this video, we are going to run some of the important Linux commands that are being used into 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 pirate OS, which is based on the bean 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 a terminal and now I'm going to execute some of the system information commands.
So to start with, you're going to see a command, which is you name.
So let me just type your name and hit enter.
It says the name of the operating system, which is Linux.
Now if you type the command, you name space hyphen A, it will show you an output similar to this.
Now it displays the Linux system information.
As you can see, it is showing us Linux.
They build flavor based potatoes version 5.2.0, Parrott one AMD 64 and SNMP, Debian, etc. etc. Now
you only 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 hyphen
two parrot amd 64.
Similar kind of output where you can see that debian 8.3.0 hyphen six is installed into this computer.
Similarly, if you are on redhat based operating systems, you can simply type cat space, slash Etsy,
slash red hat hyphen 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 uptime 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 hostname and it shows you the host name of the machine is parrot,
which can also be seen from here.
Now this is something which is username at the rate hostname.
So the username is root.
If you want to verify that, just simply type.
Who am I?
And it will show you the current lockdown user of this computer.
All right.
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, February 26.
This is the time which is ISD 2021, 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.
We've 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 command, feel free to ask your questions or queries.
Thank you.