WEBVTT

00:09.210 --> 00:15.630
Harder in this listen we're going to learn about the various operators with the help of which we can

00:15.900 --> 00:17.180
make fun.

00:17.280 --> 00:25.750
OK so what are these operators are K-Doe Brits are an operator and an operator or operator semicolon

00:25.860 --> 00:30.180
operator and not operator or negation operator.

00:30.270 --> 00:36.970
By combining these operate those with the help of commands you will get a different output.

00:37.020 --> 00:40.510
I mean to see if you can make fun.

00:40.620 --> 00:41.000
OK.

00:41.070 --> 00:45.800
So let's see how we can make fun with the of these operators.

00:46.280 --> 00:53.460
OK the first operator is a boss an operator and it is denoted by the symbol on your keyboard.

00:53.600 --> 00:54.090
OK.

00:54.290 --> 00:57.730
And when you use this operator are there.

00:58.020 --> 00:59.610
Come on then.

00:59.730 --> 01:01.200
It will that come on.

01:01.230 --> 01:02.430
And the background.

01:02.530 --> 01:04.650
OK so let's see how to use it.

01:05.100 --> 01:09.940
OK let's create a folder the OK.

01:10.110 --> 01:19.210
And how to use this symbol with this command is just put in these are prepared like this and hit enter.

01:19.510 --> 01:24.510
OK and here you can see it shows here 1 and 1 6 0.

01:24.510 --> 01:31.000
This is the process id that means our process of creating the folder is running at the background.

01:31.020 --> 01:32.220
And let's see.

01:32.610 --> 01:35.730
And here you can see the folder is created.

01:35.940 --> 01:36.500
OK.

01:36.780 --> 01:38.910
And here it displays the message.

01:38.910 --> 01:39.460
Done.

01:39.540 --> 01:41.610
That means the process is completed.

01:41.720 --> 01:42.150
OK.

01:42.210 --> 01:50.790
In this way you can use this as an operator to learn any common at the background to get the next operator

01:50.790 --> 01:52.600
is an operator OK.

01:52.770 --> 01:56.690
The operator works like an IF statement.

01:56.740 --> 01:57.520
OK.

01:57.780 --> 02:01.000
First of all let's see how to use the and operator.

02:01.140 --> 02:03.000
Let's try to create.

02:03.330 --> 02:06.090
Ok what a worker directly.

02:06.110 --> 02:07.680
The folder is already there.

02:07.800 --> 02:13.440
So let's try to create the folder here like this.

02:13.440 --> 02:22.590
You need to grow at the and operator and then see the big deal and head Center says that cannot create

02:22.590 --> 02:25.150
directory prie file exists.

02:25.230 --> 02:27.890
That means that directory is already there.

02:28.050 --> 02:33.720
That's why it unable to create the directory but do good an operator.

02:33.720 --> 02:40.770
The second command that is CD changing directory command is not executed because an operator walks in

02:40.770 --> 02:47.960
such a way that the second command get executed only after the successful execution of command.

02:48.240 --> 02:49.100
OK.

02:49.450 --> 02:49.830
OK.

02:49.860 --> 02:58.340
Let's remove the directory and execute the same command again with the help of an operator.

02:58.470 --> 03:04.390
And here you can see the command is executed and we are inside the directory.

03:04.530 --> 03:09.880
OK here you can see the predicted not contains any file or folder.

03:10.110 --> 03:14.440
OK in this way you can use an operator.

03:14.910 --> 03:20.560
The next stop order is or operator the operator acts like statement.

03:20.700 --> 03:21.300
OK.

03:21.450 --> 03:29.240
So let's see how you use it just replace this and Vic or.

03:29.710 --> 03:30.000
OK.

03:30.000 --> 03:32.550
Use the pipe symbols.

03:33.030 --> 03:34.190
Let's see what happens.

03:34.350 --> 03:34.900
OK.

03:35.010 --> 03:37.220
Here peafowl is already present.

03:37.430 --> 03:37.790
OK.

03:37.800 --> 03:40.580
And we try to execute it.

03:41.300 --> 03:47.440
OK here you can see it sends M K D that can not create directly be filed exist.

03:47.670 --> 03:53.220
But here you can see under the Fosco one fails but the second Come on get executed.

03:53.220 --> 03:56.780
That means here you can see we are inside the P directory.

03:56.960 --> 03:57.500
OK.

03:57.580 --> 04:01.130
Now you can understand how all our operator works.

04:01.140 --> 04:01.610
OK.

04:01.770 --> 04:06.090
If the first command fails then the second command executed.

04:06.090 --> 04:10.970
In case of our OPERATOR OK let's try to create another folder.

04:11.550 --> 04:22.770
First of all get to the home directory and you trying to create for is the and here you can see there's

04:22.830 --> 04:24.110
directory's creator.

04:24.150 --> 04:32.060
But the second command is not executed that means or operate or works only if the first command fails.

04:32.130 --> 04:32.770
OK.

04:32.980 --> 04:41.410
This way you can use the OR operator the next operator is comm OPERATOR OK the comma operator and the

04:41.410 --> 04:47.270
use of comma operator is to execute more than one come on at the same time.

04:47.360 --> 04:48.010
OK.

04:48.250 --> 04:50.030
Like this suppose.

04:50.130 --> 04:51.470
Going to see there are good read.

04:51.510 --> 04:54.190
This began as an hour to remove them.

04:54.190 --> 04:59.450
So let's issue the on really be cynical.

04:59.830 --> 05:04.570
Our reviewer is OK with the help of the semi colon.

05:04.570 --> 05:09.220
You can separate various commands and exclude them at one time.

05:09.250 --> 05:09.720
OK.

05:09.770 --> 05:12.910
Let's enter here Kelsey.

05:13.270 --> 05:17.830
Allison Vienne is directory's get removed from here.

05:17.830 --> 05:24.670
Now the final operator that I would like to show you is the not operator or negation operator the not

05:24.670 --> 05:28.190
operator acts like except statement in programming.

05:28.210 --> 05:30.940
OK so let's see how it works.

05:30.940 --> 05:32.940
First lesson here Kelsey.

05:33.160 --> 05:36.100
There are two files with the extension.

05:36.130 --> 05:43.180
The XTi are present one file with the one file with a statement one file with Doc and one file with

05:43.270 --> 05:44.210
excellence.

05:44.330 --> 05:46.690
OK all these files are different.

05:46.690 --> 05:53.880
OK so what if I want to do the text file as it is and remove the remaining files.

05:54.190 --> 05:57.350
Ok so far these just come on like this.

05:57.400 --> 06:01.770
The not OPERATOR OK then.

06:01.820 --> 06:10.810
Inside this practice put store dot 60 means it is going to leave all the files which are hiring.

06:10.840 --> 06:14.370
Got the extension and remove the remaining files.

06:14.400 --> 06:17.400
Ok so let's hit enter.

06:17.890 --> 06:20.130
OK let's see the result at last.

06:20.140 --> 06:27.220
And here you can see all the files except the extensions are removed from the current directory.

06:27.540 --> 06:37.000
OK in this way you can use the person not karma and or operator and make fun with them or get.
