1
00:00:00,530 --> 00:00:01,880
Hello, my name is Typhoon.

2
00:00:01,880 --> 00:00:08,150
And in this lecture of our Occelli course, we will use more examples with less commands.

3
00:00:20,540 --> 00:00:26,210
So unlike every virtual every other Linux command.

4
00:00:27,700 --> 00:00:36,040
LZ is aware of whether Strauss is a screen or whether it's being redirected to a pipe or otherwise.

5
00:00:36,040 --> 00:00:38,350
So the reason is friendliness.

6
00:00:38,350 --> 00:00:48,790
So when stdout is a screen, LZ arranged its output in a multiple columns for convenient reading.

7
00:00:48,820 --> 00:00:50,950
For example, LZ bin here.

8
00:00:51,830 --> 00:00:53,290
Ops here.

9
00:00:53,330 --> 00:00:53,570
Look.

10
00:00:53,600 --> 00:00:54,470
Not like this.

11
00:00:54,590 --> 00:00:55,280
Yeah.

12
00:00:55,580 --> 00:00:59,150
LZ, been here, so.

13
00:01:05,820 --> 00:01:08,580
Home on Kali and Lsir.

14
00:01:08,610 --> 00:01:14,010
So here and make it clear and pin.

15
00:01:14,220 --> 00:01:22,320
Yeah that's enough files here for us so this pin so when stars directed.

16
00:01:22,350 --> 00:01:31,710
However LZ produce a single column so I will demonstrate this by piping the output of the RLS to a command

17
00:01:31,710 --> 00:01:34,260
that simply reproduces its input.

18
00:01:34,260 --> 00:01:35,340
So such as cat.

19
00:01:35,340 --> 00:01:37,920
So for example, bin and cat.

20
00:01:38,370 --> 00:01:46,290
And as you can see here, we are seeing this just a one line in each each here.

21
00:01:46,290 --> 00:01:53,250
So oops, we opened so much files right now by just clicking and like like this.

22
00:01:53,250 --> 00:01:54,930
So we are not using it again.

23
00:01:55,170 --> 00:01:57,450
Unfortunately, we did it here.

24
00:01:58,080 --> 00:01:58,380
Oops.

25
00:01:58,380 --> 00:01:58,740
Yeah.

26
00:01:58,740 --> 00:01:59,400
Whatever.

27
00:01:59,610 --> 00:02:00,840
So now.

28
00:02:02,260 --> 00:02:06,370
The behavior can lead to a strange looking results like this.

29
00:02:06,370 --> 00:02:09,520
So let's actually create an LZ here.

30
00:02:10,240 --> 00:02:10,810
Oops.

31
00:02:11,140 --> 00:02:11,980
LZ.

32
00:02:12,830 --> 00:02:16,700
UPS here and here.

33
00:02:16,880 --> 00:02:18,710
Let's make it LZ.

34
00:02:18,740 --> 00:02:20,660
WC here.

35
00:02:20,660 --> 00:02:23,540
And as you can see, we have ten lines.

36
00:02:23,540 --> 00:02:26,540
But as you can see here in the output, we have just one line.

37
00:02:26,780 --> 00:02:31,970
So the first command prints all file names in one line.

38
00:02:31,970 --> 00:02:35,660
So but the second command reports the LZ produced four lines.

39
00:02:35,660 --> 00:02:38,840
So if you aren't aware of the actual, it's ten lines.

40
00:02:38,840 --> 00:02:45,860
So if you are aren't aware of the quirky behavior of LZ, you might find this this prints very confusing.

41
00:02:45,860 --> 00:02:49,850
So LZ has options to override its default behavior.

42
00:02:49,850 --> 00:02:56,810
So force LZ to print a single column with a here L minus one option.

43
00:02:56,810 --> 00:02:59,210
So we are seeing this now.

44
00:02:59,360 --> 00:03:04,460
Now we can also use force to multiple columns with the C option.

45
00:03:04,460 --> 00:03:05,390
So let's see.

46
00:03:05,420 --> 00:03:07,700
And as you can see, we use the multiple command.

47
00:03:07,700 --> 00: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

48
00:03:15,720 --> 00:03:17,640
we have ten lines.

49
00:03:17,640 --> 00:03:21,240
And if we do it like that, for example, the.

50
00:03:22,620 --> 00:03:24,280
Yeah, let's actually write it like that.

51
00:03:24,300 --> 00:03:27,630
C and WCL.

52
00:03:27,750 --> 00:03:32,340
And as you can see here, we got only two lines here.

53
00:03:32,340 --> 00:03:39,030
So LHS is actually pretty strange if you wanted to understand it deeply here.
