1
00:00:01,340 --> 00:00:04,040
Hello, everyone, and welcome to this video.

2
00:00:04,130 --> 00:00:11,150
In this video, we are going to run some of the important Linux commands that are being used into day

3
00:00:11,150 --> 00:00:12,080
to day lives.

4
00:00:12,710 --> 00:00:20,630
So to begin with, we are going to run some of the system information Linux commands that are used and

5
00:00:20,630 --> 00:00:21,800
you should know them.

6
00:00:22,580 --> 00:00:25,810
So to begin with, you have to start your terminal.

7
00:00:25,820 --> 00:00:28,670
So this is what is called as a terminal.

8
00:00:28,940 --> 00:00:33,110
So I have started my pirate OS, which is based on the bean flavor.

9
00:00:33,260 --> 00:00:39,470
Now, this is again a very famous operating system which is used for penetration testing.

10
00:00:40,010 --> 00:00:43,330
Now, to start your terminal, you just have to click over here.

11
00:00:43,340 --> 00:00:47,420
As you can see, it will open up a terminal for you.

12
00:00:48,110 --> 00:00:55,280
I have already opened a terminal and now I'm going to execute some of the system information commands.

13
00:00:55,760 --> 00:00:59,720
So to start with, you're going to see a command, which is you name.

14
00:00:59,720 --> 00:01:02,690
So let me just type your name and hit enter.

15
00:01:02,720 --> 00:01:07,400
It says the name of the operating system, which is Linux.

16
00:01:07,550 --> 00:01:16,200
Now if you type the command, you name space hyphen A, it will show you an output similar to this.

17
00:01:16,220 --> 00:01:19,760
Now it displays the Linux system information.

18
00:01:19,760 --> 00:01:22,850
As you can see, it is showing us Linux.

19
00:01:23,940 --> 00:01:35,610
They build flavor based potatoes version 5.2.0, Parrott one AMD 64 and SNMP, Debian, etc. etc. Now

20
00:01:35,610 --> 00:01:38,510
you only see which version is installed.

21
00:01:38,520 --> 00:01:50,790
You can type cat space slash proc slash version and hit enter and you can see Linux version 5.2.0 hyphen

22
00:01:50,790 --> 00:01:52,500
two parrot amd 64.

23
00:01:53,340 --> 00:02:03,660
Similar kind of output where you can see that debian 8.3.0 hyphen six is installed into this computer.

24
00:02:03,900 --> 00:02:13,110
Similarly, if you are on redhat based operating systems, you can simply type cat space, slash Etsy,

25
00:02:13,110 --> 00:02:18,510
slash red hat hyphen release and hit enter.

26
00:02:18,840 --> 00:02:22,080
Now, this is not a red hat based operating system.

27
00:02:22,080 --> 00:02:25,830
That's why it is saying no such file or directory.

28
00:02:26,790 --> 00:02:32,880
Let's move on and we are going to type the next command which is uptime and hit enter.

29
00:02:33,120 --> 00:02:37,980
Now, this command shows you how long the system has been running.

30
00:02:38,610 --> 00:02:43,960
As you can see, it shows that it has been up 28 minutes.

31
00:02:43,980 --> 00:02:49,290
One user is there and this is the average load on the operating system.

32
00:02:49,770 --> 00:02:57,360
Now, if you want to see the system hostname or sometimes also known as the machine name, we are going

33
00:02:57,360 --> 00:03:05,820
to use the command which is simply hostname and it shows you the host name of the machine is parrot,

34
00:03:06,090 --> 00:03:08,190
which can also be seen from here.

35
00:03:08,340 --> 00:03:12,630
Now this is something which is username at the rate hostname.

36
00:03:12,690 --> 00:03:14,550
So the username is root.

37
00:03:14,580 --> 00:03:17,130
If you want to verify that, just simply type.

38
00:03:17,130 --> 00:03:18,060
Who am I?

39
00:03:18,090 --> 00:03:22,890
And it will show you the current lockdown user of this computer.

40
00:03:23,930 --> 00:03:24,650
All right.

41
00:03:24,660 --> 00:03:28,410
The next command is hostname space hyphen I.

42
00:03:28,830 --> 00:03:36,610
When you do this, you will be able to see the local IP address of the host that you are currently logged

43
00:03:36,610 --> 00:03:37,190
in into.

44
00:03:37,200 --> 00:03:41,460
And you can see this is the local IP address of this host.

45
00:03:42,330 --> 00:03:48,810
Now the next command is that you can see is last space reboot.

46
00:03:49,380 --> 00:03:58,800
Now this is going to show you the system reboot history when when the computer has been restarted.

47
00:03:59,070 --> 00:04:07,440
Now, this is handy and helpful sometimes to know whenever there was a system reboot done for your computer.

48
00:04:08,130 --> 00:04:09,900
Next is very simple.

49
00:04:09,900 --> 00:04:15,570
You can use date command to know the current date as well as time of your computer.

50
00:04:15,780 --> 00:04:18,810
As you can see, Friday, February 26.

51
00:04:18,810 --> 00:04:23,940
This is the time which is ISD 2021, which is the year.

52
00:04:24,210 --> 00:04:28,850
Now, in case you want to see the calendar, you can do that as well.

53
00:04:28,860 --> 00:04:35,340
Simply you have to type the command, which is C, a, L and hit enter and you will be able to see the

54
00:04:35,340 --> 00:04:37,890
calendar from your terminal.

55
00:04:38,400 --> 00:04:48,630
Next is the command which is simply w hit enter and you will be able to see which user is online currently

56
00:04:48,630 --> 00:04:54,680
and you can see the user which is root is currently logged in and online.

57
00:04:55,310 --> 00:04:56,530
We've already seen the command.

58
00:04:56,550 --> 00:05:03,090
Who am I to know which is the current user which has been logged in into your computer and you can see

59
00:05:03,090 --> 00:05:07,440
the root user is currently logged in and using the terminal.

60
00:05:07,920 --> 00:05:09,450
So this is it for this video.

61
00:05:09,480 --> 00:05:17,460
I hope you guys understood the basic Linux command that can be used to identify the system information

62
00:05:17,460 --> 00:05:18,990
of your operating system.

63
00:05:19,200 --> 00:05:26,160
In upcoming lessons, we are going to see more commands for each specific task that we are going to

64
00:05:26,160 --> 00:05:26,860
perform.

65
00:05:26,880 --> 00:05:28,620
So I hope you guys understood.

66
00:05:28,650 --> 00:05:34,530
In case you feel any issues into this command, feel free to ask your questions or queries.

67
00:05:34,560 --> 00:05:35,250
Thank you.
