Hello, my name is Typhoon.
And in this lecture of our Occelli course, we will use more examples with less commands.
So unlike every virtual every other Linux command.
LZ is aware of whether Strauss is a screen or whether it's being redirected to a pipe or otherwise.
So the reason is friendliness.
So when stdout is a screen, LZ arranged its output in a multiple columns for convenient reading.
For example, LZ bin here.
Ops here.
Look.
Not like this.
Yeah.
LZ, been here, so.
Home on Kali and Lsir.
So here and make it clear and pin.
Yeah that's enough files here for us so this pin so when stars directed.
However LZ produce a single column so I will demonstrate this by piping the output of the RLS to a command
that simply reproduces its input.
So such as cat.
So for example, bin and cat.
And as you can see here, we are seeing this just a one line in each each here.
So oops, we opened so much files right now by just clicking and like like this.
So we are not using it again.
Unfortunately, we did it here.
Oops.
Yeah.
Whatever.
So now.
The behavior can lead to a strange looking results like this.
So let's actually create an LZ here.
Oops.
LZ.
UPS here and here.
Let's make it LZ.
WC here.
And as you can see, we have ten lines.
But as you can see here in the output, we have just one line.
So the first command prints all file names in one line.
So but the second command reports the LZ produced four lines.
So if you aren't aware of the actual, it's ten lines.
So if you are aren't aware of the quirky behavior of LZ, you might find this this prints very confusing.
So LZ has options to override its default behavior.
So force LZ to print a single column with a here L minus one option.
So we are seeing this now.
Now we can also use force to multiple columns with the C option.
So let's see.
And as you can see, we use the multiple command.
So if you write, as you can see with this, we've got the LZ with WC l we got ten as a result because
we have ten lines.
And if we do it like that, for example, the.
Yeah, let's actually write it like that.
C and WCL.
And as you can see here, we got only two lines here.
So LHS is actually pretty strange if you wanted to understand it deeply here.