HEY EVERYBODY WELCOME TO THE PART.
Three of the Linux command line mini course.
So I want to just do a quick one minute recap or so on standard input output an air and piping.
Now as we talked about in the Windows platform it is exactly the same on the Linux platform.
So echoing or doing a last dash five to get an error as an example.
And before we pipe to which is standard error into a file called errors we can then see that we have
our file.
However if we do one that works last dash l we get our results.
We got our errors.
We don't see our errors.
So it works exactly the same way the same thing works with the pipe commands.
So you know echoing dash l we're going to go over a lot of this stuff and then we grep for the word
error right.
We'll go over grab in a future video.
However just know that it's similar to find string on Linux on Windows.
So it's just looking for a particular string.
In this case we're looking at the word error so we see we don't see that total zero at the top here.
We just get this line because that's all we have.
So that's all that matches the word error.
And if we did you know total we would only get total zero.
Right.
So just understand that the input output and pipes are all used exactly the same.
There is one difference though that you want to keep in mind.
Not quite a difference but the pipe in Linux is used far more in Linux than there is than it is on Windows.
So piping commands together stringing things together in weird ways to get one line commands that take
raw data into something you can use maybe pushes it to a tool that you built that auto attack something
or might run a particular scan or whatever the case might be you're going to use pipes a lot get familiar
with it.
There's not going to be too many times where when you're piping things together or trying to string
things together that you're not going to want to just use a pipe just to make things a little bit simpler.
So this is just a quick quick overview.
Get familiar with the pipe on the Linux platform.
Again standard input output is the same.
The one big difference here between Windows and Linux is the No.
So before we would do if we go test N2 errors.
Right.
That.
Go test two errors.
Right.
Errors.
Perfect.
Now we want to I'm sorry.
Let's do something else.
Let's do five right.
So we know that that's going to air out.
So if we don't before we would just send this to null.
That doesn't work here.
So what we want.
I'm sorry.
We'll send this to all over.
It still works but the underlying principle is something called.
No.
This is where you want to specifically send it.
And that just basically means the numbers and windows in this particular case it happens to use null
as well.
Just just use dev null going forward and not the word no on windows or on Linux just because of the
fact that most Linux operating systems use this not this.
This might just be a Ubuntu thing.
So just use the word devil because that's an actual path.
It's a it's an actual folder that essentially when something goes into it it gets deleted.
Nothing special.
But that just know that that's the null the true no.
On a Linux platform.