Harder in this listen we're going to learn about the various operators with the help of which we can
make fun.
OK so what are these operators are K-Doe Brits are an operator and an operator or operator semicolon
operator and not operator or negation operator.
By combining these operate those with the help of commands you will get a different output.
I mean to see if you can make fun.
OK.
So let's see how we can make fun with the of these operators.
OK the first operator is a boss an operator and it is denoted by the symbol on your keyboard.
OK.
And when you use this operator are there.
Come on then.
It will that come on.
And the background.
OK so let's see how to use it.
OK let's create a folder the OK.
And how to use this symbol with this command is just put in these are prepared like this and hit enter.
OK and here you can see it shows here 1 and 1 6 0.
This is the process id that means our process of creating the folder is running at the background.
And let's see.
And here you can see the folder is created.
OK.
And here it displays the message.
Done.
That means the process is completed.
OK.
In this way you can use this as an operator to learn any common at the background to get the next operator
is an operator OK.
The operator works like an IF statement.
OK.
First of all let's see how to use the and operator.
Let's try to create.
Ok what a worker directly.
The folder is already there.
So let's try to create the folder here like this.
You need to grow at the and operator and then see the big deal and head Center says that cannot create
directory prie file exists.
That means that directory is already there.
That's why it unable to create the directory but do good an operator.
The second command that is CD changing directory command is not executed because an operator walks in
such a way that the second command get executed only after the successful execution of command.
OK.
Let's remove the directory and execute the same command again with the help of an operator.
And here you can see the command is executed and we are inside the directory.
OK here you can see the predicted not contains any file or folder.
OK in this way you can use an operator.
The next stop order is or operator the operator acts like statement.
OK.
So let's see how you use it just replace this and Vic or.
OK.
Use the pipe symbols.
Let's see what happens.
OK.
Here peafowl is already present.
OK.
And we try to execute it.
OK here you can see it sends M K D that can not create directly be filed exist.
But here you can see under the Fosco one fails but the second Come on get executed.
That means here you can see we are inside the P directory.
OK.
Now you can understand how all our operator works.
OK.
If the first command fails then the second command executed.
In case of our OPERATOR OK let's try to create another folder.
First of all get to the home directory and you trying to create for is the and here you can see there's
directory's creator.
But the second command is not executed that means or operate or works only if the first command fails.
OK.
This way you can use the OR operator the next operator is comm OPERATOR OK the comma operator and the
use of comma operator is to execute more than one come on at the same time.
OK.
Like this suppose.
Going to see there are good read.
This began as an hour to remove them.
So let's issue the on really be cynical.
Our reviewer is OK with the help of the semi colon.
You can separate various commands and exclude them at one time.
OK.
Let's enter here Kelsey.
Allison Vienne is directory's get removed from here.
Now the final operator that I would like to show you is the not operator or negation operator the not
operator acts like except statement in programming.
OK so let's see how it works.
First lesson here Kelsey.
There are two files with the extension.
The XTi are present one file with the one file with a statement one file with Doc and one file with
excellence.
OK all these files are different.
OK so what if I want to do the text file as it is and remove the remaining files.
Ok so far these just come on like this.
The not OPERATOR OK then.
Inside this practice put store dot 60 means it is going to leave all the files which are hiring.
Got the extension and remove the remaining files.
Ok so let's hit enter.
OK let's see the result at last.
And here you can see all the files except the extensions are removed from the current directory.
OK in this way you can use the person not karma and or operator and make fun with them or get.