Holder in this lesson you're going to talk about the garbage.
And by being in Linux.
OK.
So talk about the come on with that action.
So what is on with that action in Linux and meant any command that we execute is having three streams
connected to it.
OK.
And those streams are standard input stream standard output stream and standard errors every day.
With the help of these teams we can connect to the come on OK and we can either sell the data from it
come on to a file or send the data as in who to come on from will find.
OK.
In short saving the out of.
Come on.
Go fly or sending in poop.
Come on.
Well fly is calling us come on the direction.
And this country that actually needs the help of some operators.
OK so let's see practically.
How good is it first of all I would like to show you a new.
Come on.
OK.
Which is used to create any kind of fine.
Come on it's touch.
That's Come on you can create any kind of file.
OK.
So suppose I want to create start the dx d and d h dot theory of file.
And he turned to look at those files are they created in the current directory.
LS And here you can see as you don't believe and dirty as stiff fines are created here.
OK.
And already there are some folders and files are present with that POV.
But come on you can create any kind of file.
OK.
So let's talk about the Kamandi that action.
So now we are going to search the output often come on file.
Ok let's try this with Derleth's come on if you want to see the output of the Silis come on.
Go find them.
Just type in less space rather than operator and the name of the file.
Very want to see the data.
Suppose I type it Dorothy XTi and hit enter.
OK.
So you can see the come on does not show any output.
And there are all these directly so to the file they're not the XP.
Let's see.
Got 60 and here you can see the output of this command is so good it's fine.
OK.
In this way greater great golden is used to seal the output of the come on.
We'll find the next operator.
That I would like to show you here is the greater than greater than OPERATOR OK rather than greater
than operator is rendered like this.
OK but before I actually show you let's try the same come on again here.
And let's see the contents of it got the key fine.
OK.
You can see here the exit Kuper the same Come on times but determined the same.
That means the same output should be added twice here.
But instead of that it is showing the output only one time here.
OK.
So why this thing is happening because every time when you use this operator it it is all the previous
contents of the file and add the new content stupid.
OK so our this problem is greater than greater than our credit is.
Again this will open the output to the already existing file without it is in the data.
OK so let's try it.
OK.
And now let's do the contents of the XTi.
And now here you can see the data is appended.
OK.
Now we can see here the same data two times in this way you can use the greater then greater than Obregon
up in the data file.
OK.
Now I show you Hoku sin there better from will file as input.
Come on.
OK so the someone is used to store the data OK from a fine.
OK.
So you send the input sort.
Come on from this file you need to use the operator like this or get sort less done operator and the
filing that is it not BSD.
Let's see what happens.
OK.
Here you can see it's sort of present inside the file.
OK.
And if you want to sort the data in the was order just provide the option here to slash R and hit enter.
And here you can see it displays or it's sort the data in the reverse order.
OK.
From the file.
In this way you can send the input to come on from all file with the help of less than praeter.
OK.
In this way does come on a redirection or use the piggy to send Darco file or receive the data from
a fine.
OK.
Now here you saw how the data is sorted there with the help of this operator board how to check whether
your command is working or not.
OK.
Because when you remove those and hit enter it will show the same output.
So we can take this by combining two operators here.
OK.
Both less than and greater than that means.
Here we are sorting the data entry was order and serving it to new file that is.
Tony got The X Files.
OK let's see what happens.
OK.
And here we go.
The file is created.
Give you the contents
again.
Here you can see the data is so good that there will not be any file in reverse order.
OK.
That means our.
Come on our code here is working OK.
The next thing that I would like to explain here is piping.
So what is piping piping means sending out to go from one come on.
As in put on a.
Come on.
OK.
And we can accomplish this video of pipe operator here we can see the pipe operator is denoted by the
symbol here on your keyboard.
OK let's do the piping with the same Come on less and the pipe OPERATOR OK.
Ellis come on.
We displayed the files and folders.
OK.
And I want to sort it and display it to the output.
So let's use the sort.
On and I want to sort them in reverse order.
So last hour let's see what happens.
OK.
Here you can see the output of ls come on send it to the sot.
Come on.
And the command will sort the data and display them or put.
And what happens if I remove the slasher printer.
And here you can see it sort the data in the ascending order.
So in this way you can use Kamandi direction and piping it to seal the data or to send the input to
a command from a file or to send out go go.
Come on that's it.
Put the on.
Come on.
OK.