WEBVTT

00:00.530 --> 00:01.880
Hello, my name is Typhoon.

00:01.880 --> 00:08.150
And in this lecture of our Occelli course, we will use more examples with less commands.

00:20.540 --> 00:26.210
So unlike every virtual every other Linux command.

00:27.700 --> 00:36.040
LZ is aware of whether Strauss is a screen or whether it's being redirected to a pipe or otherwise.

00:36.040 --> 00:38.350
So the reason is friendliness.

00:38.350 --> 00:48.790
So when stdout is a screen, LZ arranged its output in a multiple columns for convenient reading.

00:48.820 --> 00:50.950
For example, LZ bin here.

00:51.830 --> 00:53.290
Ops here.

00:53.330 --> 00:53.570
Look.

00:53.600 --> 00:54.470
Not like this.

00:54.590 --> 00:55.280
Yeah.

00:55.580 --> 00:59.150
LZ, been here, so.

01:05.820 --> 01:08.580
Home on Kali and Lsir.

01:08.610 --> 01:14.010
So here and make it clear and pin.

01:14.220 --> 01:22.320
Yeah that's enough files here for us so this pin so when stars directed.

01:22.350 --> 01:31.710
However LZ produce a single column so I will demonstrate this by piping the output of the RLS to a command

01:31.710 --> 01:34.260
that simply reproduces its input.

01:34.260 --> 01:35.340
So such as cat.

01:35.340 --> 01:37.920
So for example, bin and cat.

01:38.370 --> 01:46.290
And as you can see here, we are seeing this just a one line in each each here.

01:46.290 --> 01:53.250
So oops, we opened so much files right now by just clicking and like like this.

01:53.250 --> 01:54.930
So we are not using it again.

01:55.170 --> 01:57.450
Unfortunately, we did it here.

01:58.080 --> 01:58.380
Oops.

01:58.380 --> 01:58.740
Yeah.

01:58.740 --> 01:59.400
Whatever.

01:59.610 --> 02:00.840
So now.

02:02.260 --> 02:06.370
The behavior can lead to a strange looking results like this.

02:06.370 --> 02:09.520
So let's actually create an LZ here.

02:10.240 --> 02:10.810
Oops.

02:11.140 --> 02:11.980
LZ.

02:12.830 --> 02:16.700
UPS here and here.

02:16.880 --> 02:18.710
Let's make it LZ.

02:18.740 --> 02:20.660
WC here.

02:20.660 --> 02:23.540
And as you can see, we have ten lines.

02:23.540 --> 02:26.540
But as you can see here in the output, we have just one line.

02:26.780 --> 02:31.970
So the first command prints all file names in one line.

02:31.970 --> 02:35.660
So but the second command reports the LZ produced four lines.

02:35.660 --> 02:38.840
So if you aren't aware of the actual, it's ten lines.

02:38.840 --> 02:45.860
So if you are aren't aware of the quirky behavior of LZ, you might find this this prints very confusing.

02:45.860 --> 02:49.850
So LZ has options to override its default behavior.

02:49.850 --> 02:56.810
So force LZ to print a single column with a here L minus one option.

02:56.810 --> 02:59.210
So we are seeing this now.

02:59.360 --> 03:04.460
Now we can also use force to multiple columns with the C option.

03:04.460 --> 03:05.390
So let's see.

03:05.420 --> 03:07.700
And as you can see, we use the multiple command.

03:07.700 --> 03:15.720
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

03:15.720 --> 03:17.640
we have ten lines.

03:17.640 --> 03:21.240
And if we do it like that, for example, the.

03:22.620 --> 03:24.280
Yeah, let's actually write it like that.

03:24.300 --> 03:27.630
C and WCL.

03:27.750 --> 03:32.340
And as you can see here, we got only two lines here.

03:32.340 --> 03:39.030
So LHS is actually pretty strange if you wanted to understand it deeply here.
