12 videos 📅 2025-02-18 09:00:00 Africa/Blantyre
4:47:02
2025-02-19 09:20:08
2:39
2025-02-19 21:55:33
4:40
2025-02-19 22:23:21
2:58
2025-02-19 23:09:29
20:58
2025-02-19 23:48:16
3:00
2025-02-20 05:21:32
2:29
2025-02-20 05:53:02
5:18
2025-02-20 06:35:37
4:07
2025-02-20 07:47:51
1:15:07
2025-02-20 09:31:43
1:28:23
2025-02-20 11:13:37
1:16:38
2025-02-20 13:43:10

Visit the Network Engineers Programme course recordings page

                WEBVTT

00:00:43.600 --> 00:00:51.840
I like that I have to prove I am a human every time I come knocking and someone once said

00:00:51.840 --> 00:00:55.360
It's funny that robots are asking us to prove we are not robots.

00:01:01.440 --> 00:01:05.460
Isn't that true? It's a machine which is saying, hey, prove to me you're not a machine.

00:01:18.420 --> 00:01:33.840
So we'll just, you don't have to try this, but what I'm literally doing is just creating a file made out of nothing, but now I'm creating a file as you can see, 26 KB.

00:01:33.840 --> 00:01:49.080
I'm just overwriting anyways and now it's 2 MB and one more zero and now I have a 26 MB file created in my home directory.

00:01:49.080 --> 00:01:50.220
Okay, I can repeat that command.

00:01:55.500 --> 00:01:57.020
Give me a summary.

00:01:58.780 --> 00:02:06.360
Hopefully you can see if you execute the same that now you're taking more space in your file system.

00:02:07.580 --> 00:02:10.360
So nice handy command. Give me a summary which is human readable.

00:02:11.180 --> 00:02:15.360
Just careful with the spaces anytime on Linux.

00:02:16.300 --> 00:02:17.520
Careful with spaces.

00:02:19.260 --> 00:02:24.340
Does it work for you? You don't have to try this, but just showing you the output of TU-SH.

00:02:27.980 --> 00:02:29.240
Just with the file systems.

00:02:29.700 --> 00:02:32.380
Alright, so we're comfortable with

00:02:33.700 --> 00:02:39.280
Just some of these fundamental commands. Maybe I'll add to this.

00:02:39.860 --> 00:02:42.100
Good old ls.

00:02:42.820 --> 00:02:52.280
Which is the first command that we looked at just how to see what's in my file system in that particular location. Now ls has lots and lots of options.

00:02:53.400 --> 00:02:55.720
If I do dash dash help.

00:02:59.000 --> 00:03:02.080
I have plenty of options with ls.

00:03:02.140 --> 00:03:09.580
The one that we just tried first was ls minus l gave a long list was a little bit handy.

00:03:10.720 --> 00:03:21.260
We could see permissions. You can see some basic information, date, timestamps, the type of file all shows up there.

00:03:22.260 --> 00:03:30.680
There are many ways to do this. Give me the size. Give me the reverse order when I want to do some sort of sorting.

00:03:32.160 --> 00:03:34.400
T sort by time.

00:03:37.140 --> 00:03:42.320
And everyone has their own favorite ls command. For instance.

00:03:44.520 --> 00:03:46.760
We created a file.

00:03:51.380 --> 00:03:52.000
Earlier.

00:03:52.820 --> 00:03:58.940
Called as my file. What if I create a file with a dot in front of it?

00:04:05.740 --> 00:04:06.800
I take a list.

00:04:09.800 --> 00:04:12.060
And I really.

00:04:12.060 --> 00:04:16.860
I don't see it.

00:04:20.720 --> 00:04:23.440
It's there. You're going to see everything.

00:04:25.140 --> 00:04:27.940
You do ls minus a lucky. Give it a try.

00:04:31.960 --> 00:04:38.260
So with the minus a lot of things that have been hidden come out.

00:04:42.160 --> 00:04:53.560
So ls minus a kind of literally means all show me everything. What that means is if you create a file with a dot in front of it, it is hidden.

00:04:53.560 --> 00:04:56.980
The file system unless you see it with a minus.

00:05:01.860 --> 00:05:10.540
Assuming that works for everyone. Yes. So the lot of hidden files and for different purposes, but that's one if you just put a dot.

00:05:12.500 --> 00:05:15.380
Now comes one more very interesting thing.

00:05:17.100 --> 00:05:23.980
I create a file called as new backup.

00:05:27.300 --> 00:05:29.980
And now I need the folder.

00:05:31.140 --> 00:05:33.000
Would it let me create that folder?

00:05:34.300 --> 00:05:38.500
Yes, because one is a file and the other one is a.

00:05:38.960 --> 00:05:42.820
And what is the directory a type of?

00:05:44.140 --> 00:05:48.780
So back to my question. Would it let me create this folder?

00:05:58.040 --> 00:06:02.740
You cannot create a file and the folder with the same name in the same location.

00:06:04.400 --> 00:06:06.820
Because a folder is also a file.

00:06:06.820 --> 00:06:12.320
So this message is a bit confusing, isn't it? I cannot create a directory because a file exists.

00:06:17.180 --> 00:06:23.760
This hopefully now again gives us some understanding of the file system characteristics.

00:06:25.440 --> 00:06:28.820
Hidden files navigating around in the file system.

00:06:28.820 --> 00:06:36.200
The reference to parent directories and current directories and absolute paths and relative paths.

00:06:37.260 --> 00:06:41.560
The fact that multiple files and folders can exist with the same name.

00:06:42.240 --> 00:06:44.980
How do you know what mount points exists?

00:06:45.080 --> 00:06:49.780
How do I know what the size of my file system is?

00:06:49.780 --> 00:06:51.940
The folder so on and so forth.

00:06:52.700 --> 00:06:58.080
And again, commands like Alice have hundreds of options as well.

00:06:58.080 --> 00:07:03.220
So we have Alice, we have CD things that you've just done.

00:07:04.380 --> 00:07:11.860
The other thing that might be handy as you work on the system is again, just knowing who you are and where you are.

00:07:11.860 --> 00:07:14.380
So come on like ID is very useful.

00:07:17.900 --> 00:07:23.120
What is your user ID and what groups you belong to?

00:07:24.200 --> 00:07:26.380
Obviously determines your privileges.

00:07:26.380 --> 00:07:30.140
We saw the who am I.

00:07:30.820 --> 00:07:32.360
It says you are a student.

00:07:32.600 --> 00:07:37.100
That's the user that you have logged in as the current terminal.

00:07:37.300 --> 00:07:39.060
That's where your privileges are.

00:07:40.660 --> 00:07:41.280
In the terminal.

00:07:42.440 --> 00:07:47.760
To find out what's the current time, what do you type on the terminal?

00:07:48.840 --> 00:07:49.700
I type.

00:07:50.540 --> 00:07:51.640
I normally state.

00:07:53.520 --> 00:07:56.800
So time doesn't tell you time of the system.

00:07:56.920 --> 00:08:01.500
Time tells you the time it takes to complete some task.

00:08:04.220 --> 00:08:04.900
Yes.

00:08:06.680 --> 00:08:09.640
So I switch from my user to an application user.

00:08:10.160 --> 00:08:10.920
I run commands.

00:08:12.520 --> 00:08:16.760
I want to know who run those commands.

00:08:33.840 --> 00:08:38.520
So the short answer is I've understood your question.

00:08:38.800 --> 00:08:40.740
Let me prove that here.

00:08:41.220 --> 00:08:44.620
So what I'm going to do is I'm going to do pseudo bash.

00:08:45.600 --> 00:08:48.160
And I'm going to ask who am I?

00:08:48.400 --> 00:08:50.860
Right now what does it say who I am?

00:08:51.360 --> 00:08:51.960
Root.

00:08:52.380 --> 00:08:57.620
Now the way system accounting works, basically the way logging works.

00:08:58.840 --> 00:09:01.440
It's not just keeping track of this.

00:09:01.680 --> 00:09:05.180
It's also keeping track of the real user from which you switched.

00:09:06.100 --> 00:09:07.600
So right now who do I?

00:09:07.600 --> 00:09:11.940
How do I know what user I really, really am?

00:09:11.940 --> 00:09:16.520
Because right now I've just switched to a share, which has root privilege.

00:09:16.620 --> 00:09:17.640
So you say who am I?

00:09:17.700 --> 00:09:18.740
But this time you shout.

00:09:21.620 --> 00:09:23.500
This is shouting at the system.

00:09:25.960 --> 00:09:27.960
Then it says fine, you are student.

00:09:31.840 --> 00:09:32.800
Oh, OK.

00:09:33.140 --> 00:09:34.420
So if I were to search for this.

00:09:34.720 --> 00:09:39.960
So this is you trying to remember which user you looked at.

00:09:40.680 --> 00:09:41.320
Yes.

00:09:44.300 --> 00:09:47.860
So I guess you need to manipulate the command to.

00:09:48.300 --> 00:09:52.000
So now you have now you're looking for the commands.

00:09:52.620 --> 00:09:53.980
But it does let us know.

00:09:54.180 --> 00:10:00.320
I think in terms of what you're trying to do is simply called as auditing.

00:10:00.640 --> 00:10:03.740
And there is a system accounting that must be configured.

00:10:04.300 --> 00:10:06.600
And it will keep track of the real user.

00:10:06.600 --> 00:10:09.460
This these are none of this is auditing.

00:10:09.600 --> 00:10:11.060
None of this is accounting.

00:10:12.080 --> 00:10:14.600
What you need is a system level log file.

00:10:16.880 --> 00:10:19.860
That kind of does this in the Unix world.

00:10:20.160 --> 00:10:22.980
We used to do who do in the Linux and others.

00:10:22.980 --> 00:10:26.280
You just have to set up accounting to do that long.

00:10:27.180 --> 00:10:29.960
OK, then you can maintain that historic log.

00:10:31.060 --> 00:10:32.860
So just you guys try the same.

00:10:33.620 --> 00:10:36.860
The who am I and who am I.

00:10:38.780 --> 00:10:43.300
After you run the shell with root privileges.

00:10:44.560 --> 00:10:46.780
Just checking all of you are still with me.

00:10:46.940 --> 00:10:47.560
Yes, yes.

00:10:49.180 --> 00:10:50.840
Akana, are you around? Vinit?

00:10:50.880 --> 00:10:51.360
Yeah.

00:10:51.940 --> 00:10:52.880
All right.

00:10:54.000 --> 00:10:54.960
You're all network people.

00:10:54.980 --> 00:10:56.860
So I'm pinging you to see if there is a timeout.

00:10:58.720 --> 00:11:04.980
I'm looking for latency and if ICMP is coming back or not.

00:11:08.180 --> 00:11:13.200
When you ping, what is the ICMP type for equal request and equal reply?

00:11:14.100 --> 00:11:14.840
Is that a question?

00:11:15.120 --> 00:11:16.760
Yeah, it is.

00:11:16.880 --> 00:11:18.000
What is the question?

00:11:18.200 --> 00:11:21.420
When you ping, you're using the ICMP protocol.

00:11:21.840 --> 00:11:25.840
What is the exact type code for the equal request and equal reply?

00:11:25.920 --> 00:11:26.300
Code.

00:11:26.300 --> 00:11:26.900
Yeah.

00:11:27.040 --> 00:11:29.700
So it's a type zero and type eight.

00:11:31.400 --> 00:11:33.920
That's your equal request and equal response.

00:11:35.880 --> 00:11:42.100
I did my I started my career as a network engineer in 1994.

00:11:44.180 --> 00:11:45.180
Please change.

00:11:46.460 --> 00:11:48.840
Excuse me, 1994.

00:11:49.700 --> 00:11:50.120
Yes.

00:11:52.840 --> 00:11:58.600
We were waiting for our electricians.

00:11:59.700 --> 00:12:05.760
Besides, what kind of computers do you use?

00:12:09.460 --> 00:12:13.760
No, but you need some kind of computer.

00:12:14.760 --> 00:12:22.560
So I worked on IBM systems and OS tools at that time.

00:12:22.620 --> 00:12:24.700
We didn't use TCPIP protocol.

00:12:24.800 --> 00:12:29.740
It was IPX SPX on novel network, which was routable as well.

00:12:30.320 --> 00:12:36.660
We worked on MTA stacks, X 400 and X 500 for directory and communication.

00:12:37.260 --> 00:12:43.360
And then TCPIP kind of came later as the internet started to become more popular.

00:12:43.620 --> 00:12:45.460
They're like, what's this TCPIP thing?

00:12:45.520 --> 00:12:47.660
Nobody will use it.

00:12:48.240 --> 00:12:49.740
And then the rest is history.

00:12:50.540 --> 00:12:52.260
And the rest is us.

00:12:54.360 --> 00:12:54.740
Yeah.

00:13:02.280 --> 00:13:03.480
All right.

00:13:03.480 --> 00:13:11.440
There's a little bit of who am I just telling you who you have signed up as and in the system.

00:13:11.820 --> 00:13:13.100
What are you recognized?

00:13:13.960 --> 00:13:15.280
So that's just some basics.

00:13:15.280 --> 00:13:19.260
It's just nice to know in terms of the commands.

00:13:19.480 --> 00:13:27.120
Now, yes, since you're working on the file system, request us to kindly exit and come back to our home directory.

00:13:28.120 --> 00:13:28.720
Sorry.

00:13:29.420 --> 00:13:29.860
Yes.

00:13:31.280 --> 00:13:34.940
So in terms of how this is being set up.

00:13:36.060 --> 00:13:47.500
But if you're using your command to switch to root, then we definitely we're using bash.

00:13:51.360 --> 00:13:55.500
So within the terminal of the set up homes.

00:13:58.020 --> 00:14:08.280
But if we're using the commands, it switches to a completely new language.

00:14:09.180 --> 00:14:09.240
Yeah.

00:14:09.240 --> 00:14:09.720
Yeah.

00:14:10.460 --> 00:14:15.240
And that's where you add the dashboard so that you get the complete environment.

00:14:15.840 --> 00:14:22.100
Basically, all the not hidden files which contain a lot of configuration is loaded as well.

00:14:22.900 --> 00:14:32.660
Because I said, for example, maybe you can run the sudo space su dash or the sudo minus i.

00:14:33.440 --> 00:14:35.700
Then it drops you to a complete difference.

00:14:36.780 --> 00:14:40.980
Yeah, you're doing sudo su.

00:14:42.100 --> 00:14:43.700
It's the same thing here.

00:14:44.320 --> 00:14:47.120
It's just switching to root.

00:15:00.000 --> 00:15:03.640
The idea is we don't want to completely switch to another user.

00:15:03.740 --> 00:15:07.300
We can just restrict you for certain commands.

00:15:07.420 --> 00:15:09.000
That's where sudo is very handy.

00:15:09.360 --> 00:15:10.520
Very useful for that.

00:15:11.440 --> 00:15:13.000
Hopefully that answers that question.

00:15:13.000 --> 00:15:18.160
Since we are now, you know, we are navigating the file system a little bit.

00:15:18.160 --> 00:15:22.580
It's also a good time to just manipulate the file system a little bit.

00:15:22.660 --> 00:15:26.780
Very quickly, we saw the command touch creates a blank file.

00:15:26.860 --> 00:15:28.000
There's nothing in there.

00:15:33.980 --> 00:15:36.000
You can create a folder.

00:15:38.600 --> 00:15:48.160
With mkdir, you can create a complete folder structure with a minus p.

00:15:49.180 --> 00:15:55.520
I want backup slash logs slash generally.

00:15:57.380 --> 00:16:00.600
And I want the same for everything.

00:16:01.180 --> 00:16:02.700
You see, it doesn't give me any errors.

00:16:03.140 --> 00:16:04.940
The rest of the path is already created.

00:16:06.100 --> 00:16:08.940
It helps me quickly create the structure.

00:16:08.940 --> 00:16:12.880
So you can just do touch to create a blank file.

00:16:13.840 --> 00:16:16.940
And you can do mkdir to quickly create a couple of files.

00:16:17.240 --> 00:16:29.320
Can I please request that you make folders with a similar naming as mine, just so that as you follow the commands coming after this, you don't have to keep adapting it to your directory structure.

00:16:29.320 --> 00:16:30.920
Feel free later on.

00:16:41.040 --> 00:16:42.800
And nothing has root.

00:16:42.860 --> 00:16:44.660
We are happy to run this as a moment.

00:16:46.880 --> 00:16:48.320
This is for everyone.

00:16:49.620 --> 00:16:50.740
Please do the same.

00:16:53.960 --> 00:16:56.880
So that's making folders, creating a file.

00:17:00.580 --> 00:17:01.500
Let's copy.

00:17:02.560 --> 00:17:04.040
DC host.

00:17:04.060 --> 00:17:05.880
Now that's a single file.

00:17:07.960 --> 00:17:09.880
Let's copy it in that location.

00:17:14.300 --> 00:17:17.920
Let's copy multiple files with a wild card.

00:17:18.040 --> 00:17:22.180
Anything that starts with whatever but ends with a con.

00:17:25.640 --> 00:17:29.840
Let's copy it in the other location.

00:17:34.760 --> 00:17:38.180
If it finds any folders, it doesn't copy them.

00:17:39.820 --> 00:17:41.640
It's copying only files.

00:17:42.880 --> 00:17:47.240
If I try to copy.

00:17:49.000 --> 00:17:51.460
Back up logs.

00:17:54.200 --> 00:17:56.240
Back up logs.

00:17:58.960 --> 00:18:01.740
It says I don't like copying folders.

00:18:05.960 --> 00:18:11.040
And what it suggests, if you now work on folders, mention minus i.

00:18:11.280 --> 00:18:13.440
The recursive, the whole structure.

00:18:29.960 --> 00:18:34.240
What if I copy the same thing over and over again?

00:18:43.260 --> 00:18:44.260
Doesn't care, right?

00:18:44.260 --> 00:18:45.420
It just overrides.

00:18:45.420 --> 00:18:47.580
Is that good or bad?

00:18:49.380 --> 00:18:50.500
Some will argue it's good.

00:18:50.500 --> 00:18:52.020
It does exactly what I want.

00:18:52.240 --> 00:18:52.920
You don't need my nanny.

00:18:52.920 --> 00:18:58.180
I made a mistake and now it just overrides my side.

00:18:58.960 --> 00:18:59.280
There you go.

00:18:59.300 --> 00:19:00.840
Then you should not be a sysadmin.

00:19:00.920 --> 00:19:01.900
Some will argue.

00:19:04.340 --> 00:19:07.780
The problem is between the chain and the tester.

00:19:08.860 --> 00:19:09.380
Yes.

00:19:10.040 --> 00:19:13.580
In the network layer, we say this is which layer?

00:19:14.760 --> 00:19:15.640
Layer 8.

00:19:17.140 --> 00:19:21.140
When I used to be on service desk, that's the joke we would have.

00:19:21.260 --> 00:19:22.620
Saying, oh, it's a layer 8 problem.

00:19:25.320 --> 00:19:26.380
What's the layer 8?

00:19:26.500 --> 00:19:27.980
Well, the layer above the application.

00:19:30.580 --> 00:19:31.880
People wouldn't understand.

00:19:32.080 --> 00:19:32.940
They're like, huh, what?

00:19:33.300 --> 00:19:36.080
Yeah, it's between the chair and the desk.

00:19:36.920 --> 00:19:38.980
It's called as the OSI layer 8.

00:19:40.500 --> 00:19:43.980
So it doesn't mind just quickly overriding.

00:19:45.880 --> 00:19:50.040
If you don't want that to happen, we'll discuss this later on.

00:19:50.120 --> 00:19:51.660
But we can do a minus i.

00:19:54.880 --> 00:19:56.960
And minus i is a little bit more friendly.

00:19:59.160 --> 00:20:02.720
It's a bit more interactive and it says, hey, you're going to overwrite.

00:20:04.700 --> 00:20:08.200
You can pick and choose whether it's something that you desire.

00:20:10.920 --> 00:20:15.960
A couple of file system options.

00:20:16.080 --> 00:20:20.260
You can copy multiple files into the same destination.

00:20:21.360 --> 00:20:22.980
By default, it just overwrites.

00:20:25.740 --> 00:20:27.980
Assuming all of you are giving this a try.

00:20:31.380 --> 00:20:40.200
Then comes the command to move or rename.

00:20:40.600 --> 00:20:42.240
One command does both.

00:20:42.960 --> 00:20:42.980
mv.

00:20:45.580 --> 00:20:46.780
What does that mean?

00:20:48.000 --> 00:20:50.460
How can it move or rename?

00:20:51.560 --> 00:20:52.240
So.

00:20:53.860 --> 00:20:58.140
First of all.

00:21:00.340 --> 00:21:01.340
Data file.

00:21:04.500 --> 00:21:06.140
mv data file.

00:21:06.200 --> 00:21:07.960
Now careful with the destination.

00:21:08.040 --> 00:21:12.280
If I say mv data file, this is the source.

00:21:12.980 --> 00:21:15.540
The next argument is the destination.

00:21:15.540 --> 00:21:21.600
So if I say mv data file, data file one, what is it going to do?

00:21:26.340 --> 00:21:31.800
It's going to sort of like replace the other file with that one.

00:21:32.120 --> 00:21:35.240
Yes, so there is no file called as data file one right now.

00:21:35.360 --> 00:21:37.040
So data file doesn't exist.

00:21:37.220 --> 00:21:38.560
A data file one does not exist.

00:21:38.580 --> 00:21:41.460
So all it's going to do.

00:21:43.980 --> 00:21:49.460
It's just going to rename this to this.

00:21:54.080 --> 00:22:01.300
So I know mv sounds like it's a command to move, but it moves or rename depending on just one simple factor.

00:22:02.420 --> 00:22:04.460
Does the destination exist?

00:22:06.520 --> 00:22:10.240
If the destination exists is going to move in there.

00:22:10.920 --> 00:22:14.240
If the destination does not exist, it will simply rename.

00:22:15.320 --> 00:22:16.240
Here is another example.

00:22:18.320 --> 00:22:19.660
Try this one out.

00:22:20.620 --> 00:22:23.240
I'm going to say touch file X.

00:22:24.920 --> 00:22:28.580
I'm going to say mv file X, but this time.

00:22:29.580 --> 00:22:31.240
I'm going to say BKP.

00:22:33.340 --> 00:22:34.860
What do you think is going to happen?

00:22:35.320 --> 00:22:37.860
Do we already have a folder called as BKP here?

00:22:37.920 --> 00:22:38.320
Yes.

00:22:38.320 --> 00:22:41.180
So what is that going to do?

00:22:41.580 --> 00:22:47.120
Is it going to rename file X to BKP or is it going to move it to that folder?

00:22:52.360 --> 00:22:56.640
If the destination exists, it's a move.

00:22:58.160 --> 00:22:59.760
So does it do it like copy in this case?

00:23:00.660 --> 00:23:01.140
Yes.

00:23:01.680 --> 00:23:04.180
So does it open right?

00:23:05.240 --> 00:23:07.600
No, no, no, it's just a move.

00:23:07.600 --> 00:23:10.400
You're moving this file into that folder.

00:23:15.480 --> 00:23:20.720
If the destination does not exist, it will simply rename this file.

00:23:22.120 --> 00:23:25.700
Let's have a look at ls file X.

00:23:26.760 --> 00:23:29.480
File X is not here anymore.

00:23:32.440 --> 00:23:33.940
It's gone there.

00:23:36.680 --> 00:23:39.380
Please try this part out.

00:23:40.740 --> 00:23:42.040
Create a file.

00:23:42.600 --> 00:23:43.780
Move it to a folder.

00:23:43.880 --> 00:23:45.720
Watch it disappear.

00:23:50.580 --> 00:23:51.220
Okay.

00:23:55.400 --> 00:23:58.020
I was not even going to.

00:23:59.260 --> 00:24:00.820
Oh, this one it moves.

00:24:00.980 --> 00:24:02.720
It doesn't really copy like.

00:24:02.720 --> 00:24:03.420
It's a move.

00:24:08.120 --> 00:24:10.060
CP will copy.

00:24:14.440 --> 00:24:16.400
Let's try that.

00:24:17.540 --> 00:24:19.180
Nikola, are you with us?

00:24:19.940 --> 00:24:20.240
Winnie?

00:24:20.880 --> 00:24:20.940
Yes.

00:24:21.100 --> 00:24:21.980
Yes, I'm still here.

00:24:22.420 --> 00:24:22.880
Okay.

00:24:22.900 --> 00:24:24.020
It's just a ping.

00:24:24.380 --> 00:24:26.120
TTL, time to live.

00:24:27.460 --> 00:24:28.580
Many hops crossed.

00:24:29.000 --> 00:24:31.060
Minus one, making sure it's not zero.

00:24:42.440 --> 00:24:44.920
Again, yeah, please do give this a try.

00:24:45.160 --> 00:24:47.240
E2, with us trying things out.

00:24:48.280 --> 00:24:50.140
Yeah, it's interesting.

00:24:51.060 --> 00:24:54.700
It's only now that I realize that I've never actually had to read the message.

00:24:55.680 --> 00:24:59.160
I can move files from one location to another.

00:24:59.160 --> 00:24:59.580
Okay.

00:25:09.660 --> 00:25:13.900
Just a little bit of file system.

00:25:15.340 --> 00:25:19.220
Nice to know how to do that as well.

00:25:25.420 --> 00:25:28.060
Of course, at times you might have to get rid of things.

00:25:28.060 --> 00:25:30.320
This is going to appear on my screen.

00:25:34.040 --> 00:25:36.160
You can always do that.

00:25:36.300 --> 00:25:36.700
RM.

00:25:38.860 --> 00:25:41.340
In this case, not many questions asked.

00:25:42.480 --> 00:25:43.720
I've created a file.

00:25:44.360 --> 00:25:45.680
I've removed a file.

00:25:47.660 --> 00:25:51.060
What happens if I say, hey, get rid of.

00:25:54.580 --> 00:25:55.540
That folder.

00:25:59.940 --> 00:26:03.560
Doesn't like that.

00:26:04.840 --> 00:26:09.560
Let's see what is in that folder.

00:26:14.700 --> 00:26:16.180
There's something in there.

00:26:17.940 --> 00:26:24.400
What if I say this, remove everything under that folder.

00:26:25.300 --> 00:26:26.340
That it doesn't mind.

00:26:26.340 --> 00:26:31.640
I use a wild card question marks for one character or you have star for all

00:26:31.640 --> 00:26:32.560
matching characters.

00:26:32.560 --> 00:26:33.660
Zero or more.

00:26:33.800 --> 00:26:34.780
That one is easy.

00:26:35.380 --> 00:26:36.500
It wise that folder.

00:26:36.820 --> 00:26:37.680
Go ahead.

00:26:37.680 --> 00:26:38.620
So quick question.

00:26:38.660 --> 00:26:39.020
Why?

00:26:39.580 --> 00:26:40.260
Why did it?

00:26:40.380 --> 00:26:41.140
Why does it?

00:26:45.540 --> 00:26:47.000
Because that's a folder.

00:26:47.040 --> 00:26:49.880
So it doesn't like deleting the whole folder.

00:26:50.060 --> 00:26:53.060
It has no problem removing all the files in the folder.

00:26:53.720 --> 00:26:55.180
You want to get rid of the folder.

00:26:58.740 --> 00:26:59.780
And minus.

00:27:04.640 --> 00:27:06.740
That should be enough.

00:27:15.380 --> 00:27:19.200
Any open files crash and burn.

00:27:19.440 --> 00:27:19.960
That's all.

00:27:21.800 --> 00:27:22.940
I want to delete.

00:27:23.060 --> 00:27:24.480
I don't care about the rest of you.

00:27:28.160 --> 00:27:29.720
Please give this a try.

00:27:29.840 --> 00:27:31.700
And you can now see.

00:27:40.060 --> 00:27:40.640
That folder.

00:27:40.640 --> 00:27:41.020
This.

00:27:54.200 --> 00:27:56.400
That's your little bit of file system.

00:27:56.520 --> 00:27:58.420
How do we get rid of things?

00:28:00.460 --> 00:28:02.220
RMS is kind of very handy.

00:28:02.680 --> 00:28:07.880
If you want to remove only empty folders, this command comes in handy as well.

00:28:10.340 --> 00:28:15.220
It only needs empty folders.

00:28:20.040 --> 00:28:20.880
Kind of like a safer approach.

00:28:23.580 --> 00:28:26.460
Only going to clean those files.

00:28:31.120 --> 00:28:33.320
I think we are all good with this.

00:28:34.660 --> 00:28:39.040
We'll continue on with some more tricks in the file system itself.

00:28:39.060 --> 00:28:41.740
And that is about links.

00:28:41.920 --> 00:28:45.720
You might remember we said there are four types of files.

00:28:46.120 --> 00:28:51.160
Ordinary files, device files, folders and what we call as links.

00:28:51.780 --> 00:28:53.040
Let's have a look at links.

00:28:53.200 --> 00:28:54.400
So what I'm going to do here.

00:28:54.400 --> 00:29:00.340
I'm just going to take hello and put it in a file.

00:29:01.460 --> 00:29:02.400
My data.

00:29:04.360 --> 00:29:06.140
I will read this file.

00:29:07.440 --> 00:29:08.400
First of all, this is.

00:29:13.080 --> 00:29:16.400
Just put a file that contains ASCII text.

00:29:18.040 --> 00:29:22.520
LS minus L kind of proves that to me.

00:29:23.260 --> 00:29:24.520
Begins with a dash.

00:29:27.620 --> 00:29:31.180
So I know that it's a regular file.

00:29:31.340 --> 00:29:34.320
And I can read it very quickly.

00:29:37.380 --> 00:29:42.860
I'll wait till you do this and then we will do the links business in a bit.

00:29:44.500 --> 00:29:46.040
Now let's try something.

00:29:46.060 --> 00:29:50.980
Let's create what we might think of as a shortcut or a link.

00:29:50.980 --> 00:29:53.520
I'm going to use the command and.

00:29:54.460 --> 00:30:00.360
To create a link, we will use this option called as minus S called as symbolic link.

00:30:01.100 --> 00:30:04.200
So this is the original file, my data.

00:30:04.980 --> 00:30:05.980
And I'm going to create.

00:30:08.840 --> 00:30:11.560
A link called as my data one.

00:30:13.920 --> 00:30:15.800
Let's have a look at.

00:30:18.660 --> 00:30:20.720
The details a little bit.

00:30:24.080 --> 00:30:25.980
I think you should notice that.

00:30:28.020 --> 00:30:30.960
Can you tell what is the original file and which one is the link?

00:30:33.520 --> 00:30:35.200
And it tells you also, right?

00:30:35.300 --> 00:30:40.540
My data is my data one is pointing to my data.

00:30:40.560 --> 00:30:41.500
So you're very clear.

00:30:41.520 --> 00:30:42.440
One is the shortcut.

00:30:42.520 --> 00:30:44.020
The other one is a real file.

00:30:44.200 --> 00:30:47.020
I can work on both the same way.

00:30:53.260 --> 00:30:56.260
Do you notice the link while you're working on it?

00:30:56.600 --> 00:30:57.020
No.

00:30:57.440 --> 00:31:00.940
So same thing when you're working on a folder, it could be a link also.

00:31:01.800 --> 00:31:03.140
You wouldn't know.

00:31:04.840 --> 00:31:08.140
So, for example, it was my data.

00:31:08.420 --> 00:31:09.040
It was one.

00:31:10.100 --> 00:31:13.720
And I was going to show the whole.

00:31:15.380 --> 00:31:17.000
Yeah, you just wouldn't know.

00:31:17.280 --> 00:31:19.060
Yeah, of course, it's going to show you the whole path.

00:31:19.060 --> 00:31:19.560
Absolutely.

00:31:21.020 --> 00:31:26.720
So if you look at the root, you will see that slash bin is also slash user slash bin.

00:31:28.660 --> 00:31:33.640
Oh, but the reason why I was asking is because yet they are on the same path.

00:31:34.140 --> 00:31:38.160
So if they are not on the same path, how will you know how this works?

00:31:39.580 --> 00:31:43.680
When you use the command ln, you will mention the path and it will tell you the same.

00:31:45.840 --> 00:31:48.780
What happens if I get rid of?

00:31:50.100 --> 00:31:52.440
The original file, so to speak.

00:31:52.640 --> 00:31:55.480
Would it let me delete it or it will say, no, you have a shortcut.

00:31:57.760 --> 00:31:59.240
I couldn't care less.

00:31:59.380 --> 00:32:02.040
What happens to the shortcut on the link?

00:32:07.840 --> 00:32:11.440
So here the shell is very friendly, showing you something in red color.

00:32:11.440 --> 00:32:14.360
I wish things like this existed 20 years ago.

00:32:16.100 --> 00:32:19.440
But when you try to use this file.

00:32:26.140 --> 00:32:27.340
There's no.

00:32:27.880 --> 00:32:28.380
I'll do that.

00:32:28.660 --> 00:32:32.600
And then if you create it back, well, there's still a way.

00:32:33.520 --> 00:32:34.880
Let's just say that.

00:32:42.880 --> 00:32:46.380
As long as the path is satisfied, it's happy.

00:32:48.120 --> 00:32:50.520
And I just request you to try this again, everybody.

00:32:51.960 --> 00:32:55.420
You can see it goes red when it says, hey, it's not going to work.

00:32:55.700 --> 00:32:58.140
And then it fixes itself back again.

00:32:58.140 --> 00:32:59.640
Soon as the requirements are met.

00:32:59.860 --> 00:33:02.340
All right, now we're going to do something slightly different.

00:33:04.020 --> 00:33:08.520
Let's talk quickly about the idea of hard links.

00:33:10.360 --> 00:33:14.020
What you saw right now is what we consider as a soft.

00:33:15.740 --> 00:33:17.460
What exactly is a hard link?

00:33:17.500 --> 00:33:18.480
Let's take a look.

00:33:18.660 --> 00:33:22.300
So I guess the analogy for hard link will go something like this.

00:33:22.680 --> 00:33:24.100
Let's say we have a room.

00:33:26.120 --> 00:33:26.720
And.

00:33:28.340 --> 00:33:29.520
This room has.

00:33:32.780 --> 00:33:33.740
Two doors.

00:33:35.980 --> 00:33:37.440
You have door number one.

00:33:38.320 --> 00:33:44.560
And you have door number two.

00:33:45.640 --> 00:33:49.760
So if a room has two doors, how many rooms do you have?

00:33:50.280 --> 00:33:51.380
You've got one.

00:33:51.380 --> 00:33:52.820
One is still a wonderful.

00:33:53.940 --> 00:33:57.520
But the someone can come in from door two.

00:33:58.420 --> 00:34:01.840
And somebody else could come in from door one, isn't it?

00:34:02.540 --> 00:34:02.960
Yes.

00:34:03.980 --> 00:34:05.440
But you actually end up.

00:34:06.320 --> 00:34:08.140
In the same room.

00:34:10.040 --> 00:34:10.560
Yes.

00:34:11.380 --> 00:34:12.740
Let's put some table there.

00:34:15.820 --> 00:34:18.520
You access the same resource, but you have multiple doors.

00:34:19.560 --> 00:34:22.320
Would it matter if we closed one of the doors?

00:34:23.680 --> 00:34:25.740
Would still there be a way to access the room?

00:34:27.140 --> 00:34:27.660
Yes.

00:34:29.280 --> 00:34:32.320
And we could always add more doors, isn't it?

00:34:33.460 --> 00:34:33.980
Yes.

00:34:33.980 --> 00:34:39.080
How many doors do we need operating minimum to have access to the room?

00:34:40.440 --> 00:34:40.840
One.

00:34:41.960 --> 00:34:46.060
As long as there is one door, we are happy.

00:34:46.480 --> 00:34:47.680
We can get into the room.

00:34:48.120 --> 00:34:51.960
This is the idea of what we call as hard links.

00:34:52.240 --> 00:34:53.300
Let me show you.

00:35:12.800 --> 00:35:13.980
Here is file one.

00:35:18.940 --> 00:35:20.140
Here is a link.

00:35:20.360 --> 00:35:21.420
This time.

00:35:22.900 --> 00:35:24.140
Let me share.

00:35:24.640 --> 00:35:26.800
I think it's still looking at my whiteboard.

00:35:28.040 --> 00:35:32.820
But at least somebody noticed that it would be worse if I go on for half an hour.

00:35:34.180 --> 00:35:36.340
Yes, this one person is paying attention.

00:35:36.720 --> 00:35:37.500
I'll take that.

00:35:37.520 --> 00:35:39.220
No, that's the biggest problem.

00:35:40.260 --> 00:35:42.740
It is always looking at me.

00:35:43.480 --> 00:35:48.240
Then the other one, we have double screen, so we are still able to see on the other side.

00:35:50.040 --> 00:35:50.520
Alright.

00:35:52.340 --> 00:35:54.140
We will take a break at one.

00:35:55.080 --> 00:35:55.800
That's fine.

00:35:55.900 --> 00:35:57.140
So we are like a minute away.

00:35:57.480 --> 00:35:59.400
This will only take a few minutes.

00:35:59.660 --> 00:36:00.060
Cool.

00:36:01.000 --> 00:36:03.020
So here I have just created a file.

00:36:03.020 --> 00:36:05.000
You can do this after you come from the break.

00:36:05.040 --> 00:36:06.880
Just watch my screen for now.

00:36:07.500 --> 00:36:08.660
So I've created a file.

00:36:08.760 --> 00:36:10.460
I'm going to do the link command.

00:36:10.540 --> 00:36:13.200
This time there is no option minus S.

00:36:13.220 --> 00:36:14.900
Let's see if that makes any difference.

00:36:17.960 --> 00:36:19.000
I already have files.

00:36:19.080 --> 00:36:21.020
Let me just create another one.

00:36:26.420 --> 00:36:29.760
Here I'll call this as the blue file.

00:36:31.740 --> 00:36:37.760
I'm going to make a link from that to the red file.

00:36:44.160 --> 00:36:46.760
Let's notice something interesting now.

00:36:48.000 --> 00:36:53.200
Do you see anything different here in the way the links show up than what you saw earlier?

00:36:54.620 --> 00:36:57.220
Does anything say that it is a link to anything else?

00:36:58.440 --> 00:36:59.120
No.

00:36:59.120 --> 00:37:00.600
It doesn't show yet.

00:37:01.600 --> 00:37:04.760
Normally it would say I don't have a link.

00:37:05.520 --> 00:37:07.080
But it doesn't have a link.

00:37:07.440 --> 00:37:08.440
What's that number?

00:37:09.140 --> 00:37:10.340
Guess what is that number?

00:37:11.120 --> 00:37:12.440
You have got two files.

00:37:13.780 --> 00:37:16.000
Remember my diagram on the whiteboard.

00:37:16.340 --> 00:37:20.300
There are two doors to the same room.

00:37:29.040 --> 00:37:31.260
Let's watch the blue file now.

00:37:31.280 --> 00:37:32.320
We haven't done anything.

00:37:32.900 --> 00:37:34.560
Something happens on the blue file.

00:37:37.480 --> 00:37:38.360
What have we created?

00:37:38.580 --> 00:37:40.960
We have created the third door.

00:37:48.360 --> 00:37:52.260
What happens if I remove the blue file?

00:37:52.280 --> 00:37:55.680
Typically we will assume that this is the original file, isn't it?

00:37:56.600 --> 00:38:01.060
Yes, it is.

00:38:01.220 --> 00:38:03.600
But the others are still happily working.

00:38:05.860 --> 00:38:10.060
On the blue file you know it's the original file because you just created it.

00:38:10.380 --> 00:38:13.380
If that was not the case, how would you know it's the original file?

00:38:17.760 --> 00:38:20.280
Look for the identity of the file.

00:38:20.280 --> 00:38:21.900
We call it as the unknown number.

00:38:28.920 --> 00:38:31.760
What is common between these files?

00:38:36.640 --> 00:38:38.340
This is the room number.

00:38:39.280 --> 00:38:40.860
This is the room number.

00:38:43.460 --> 00:38:44.920
These are two doors.

00:38:48.060 --> 00:38:49.380
This is called as heart link.

00:38:49.420 --> 00:38:53.540
Feel free to try this out when you come back from the break.

00:38:53.540 --> 00:38:54.940
We take an hour.

00:38:56.080 --> 00:38:57.040
Let's resume.

00:38:57.340 --> 00:39:00.360
I think it's 1 p.m. your time.

00:39:00.500 --> 00:39:01.000
Is that correct?

00:39:01.360 --> 00:39:02.280
Let's take an hour.

00:39:03.200 --> 00:39:04.420
Whatever the time it is for you.

00:39:04.540 --> 00:39:05.580
I think it's two hours difference.

00:39:05.960 --> 00:39:09.800
Any questions on what you see on the screen before we take a break?

00:39:10.640 --> 00:39:11.080
Have a look.

00:39:12.900 --> 00:39:13.320
No.

00:39:13.480 --> 00:39:14.300
Anybody else?

00:39:14.780 --> 00:39:15.360
All good?

00:39:16.940 --> 00:39:17.460
All good.

00:39:18.300 --> 00:39:21.560
So the key is pay attention to that problem.

00:39:23.900 --> 00:39:24.780
All right.

00:39:24.780 --> 00:39:26.460
See you guys back in an hour.

00:39:26.460 --> 00:39:27.720
I'll probably disconnect.

00:39:27.800 --> 00:39:29.480
Let me in.

00:39:30.320 --> 00:39:31.200
See you guys.

00:39:31.320 --> 00:39:32.020
Enjoy your lunch.

00:39:37.380 --> 00:39:37.880
Okay.

00:39:38.660 --> 00:39:39.600
Much appreciated.

00:39:40.040 --> 00:39:40.920
Very kind of you.

00:39:41.080 --> 00:39:41.360
See you.

00:39:56.520 --> 00:39:59.320
Thank you.

00:40:29.740 --> 00:40:30.260
Hello?

00:40:33.180 --> 00:40:33.420
Hi.

00:40:33.620 --> 00:40:40.640
I can hear you.

00:40:40.660 --> 00:40:41.840
Can you hear me?

00:40:45.660 --> 00:40:47.380
I can hear you!

00:40:47.460 --> 00:40:48.180
Can you hear me?

00:40:49.040 --> 00:40:53.520
I can hear you!

00:41:16.640 --> 00:41:17.240
Hello.

00:41:19.380 --> 00:41:22.900
I have an installation for a TV today.

00:41:22.980 --> 00:41:23.500
Can I use it?

00:41:23.500 --> 00:41:24.560
Can you just check?

00:41:24.700 --> 00:41:25.400
I'll give you the number.

00:41:25.640 --> 00:41:26.600
Can you hear me?

00:41:33.480 --> 00:41:34.760
I can hear you.

00:41:53.500 --> 00:41:54.500
I can hear you.

00:42:23.900 --> 00:42:24.580
Same number.

00:42:24.660 --> 00:42:26.100
I can take the alternate number.

00:42:26.300 --> 00:42:28.120
Can you request them to call me, please?

00:42:28.760 --> 00:42:29.900
No, installation.

00:42:30.620 --> 00:42:31.980
Yeah, I have registered two numbers.

00:42:32.020 --> 00:42:34.560
This is the alternate number.

00:42:35.480 --> 00:42:36.540
So I'm sending TV.

00:42:40.020 --> 00:42:40.420
No.

00:42:40.940 --> 00:42:42.220
Yeah, it was supposed to be today.

00:42:42.600 --> 00:42:44.300
I have been calling them for the last few days.

00:42:44.400 --> 00:42:45.660
They said it's due today.

00:42:46.860 --> 00:42:49.920
There's nobody to call them, but I don't want them to disappear.

00:42:56.220 --> 00:42:56.660
So go ahead.

00:43:02.060 --> 00:43:02.580
Two.

00:43:18.840 --> 00:43:20.240
Okay.

00:43:20.880 --> 00:43:22.280
Okay.

00:43:23.960 --> 00:43:25.360
Okay.

00:43:52.360 --> 00:43:53.460
Okay.

00:44:52.360 --> 00:44:53.480
Okay.

00:44:58.220 --> 00:44:58.600
Okay.

00:45:01.320 --> 00:45:02.720
Okay.

00:45:02.720 --> 00:45:03.420
Okay.

00:45:03.420 --> 00:45:03.860
Okay.

00:45:05.100 --> 00:45:05.420
Okay.

00:45:11.980 --> 00:45:13.380
Okay.

00:45:13.380 --> 00:45:13.400
Okay.

00:45:13.400 --> 00:45:14.080
Okay.

00:45:27.700 --> 00:45:29.100
Okay.

00:45:29.100 --> 00:45:30.100
Okay.

00:45:30.740 --> 00:45:30.760
Okay.

00:45:36.400 --> 00:45:37.800
Okay.

00:45:37.800 --> 00:45:38.340
Okay.

00:45:38.340 --> 00:45:38.360
Okay.

00:45:38.360 --> 00:45:39.660
Okay.

00:45:41.220 --> 00:45:42.620
Okay.

00:46:09.740 --> 00:46:10.240
So,

00:46:10.240 --> 00:46:14.660
my video that's sent to a video has changed.

00:46:14.980 --> 00:46:17.100
And so that's basically what this video is all about.

00:46:17.280 --> 00:46:21.900
I wanted to share with you what I've changed in this space and why I did that.

00:46:22.040 --> 00:46:29.580
So without further ado, here is my new office space with, you know, the same old office space with basically a video.

00:46:29.580 --> 00:46:30.540
Okay.

00:46:30.780 --> 00:46:31.560
Okay.

00:46:41.540 --> 00:46:42.940
Okay.

00:46:42.940 --> 00:46:44.120
Okay.

00:46:44.120 --> 00:46:44.240
Okay.

00:46:47.920 --> 00:46:49.320
Okay.

00:47:05.300 --> 00:47:06.700
Okay.

00:47:11.500 --> 00:47:12.900
Okay.

00:47:12.900 --> 00:47:13.140
Okay.

00:47:18.220 --> 00:47:19.620
Okay.

00:47:20.940 --> 00:47:22.340
Okay.

00:47:22.340 --> 00:47:23.580
Okay.

00:47:23.580 --> 00:47:24.980
Okay.

00:47:32.440 --> 00:47:32.580
Okay.

00:47:32.580 --> 00:47:33.200
Okay.

00:47:37.940 --> 00:47:39.340
Okay.

00:47:46.920 --> 00:47:48.320
Okay.

00:47:48.320 --> 00:47:49.580
Okay.

00:47:52.000 --> 00:47:53.400
Okay.

00:47:56.500 --> 00:47:57.900
Okay.

00:48:00.140 --> 00:48:01.540
Okay.

00:48:07.840 --> 00:48:09.240
Okay.

00:48:16.880 --> 00:48:18.280
Okay.

00:48:21.120 --> 00:48:22.520
Okay.

00:48:23.160 --> 00:48:23.460
Okay.

00:48:40.620 --> 00:48:42.020
Okay.

00:48:48.260 --> 00:48:48.420
Okay.

00:48:51.820 --> 00:48:52.260
Okay.

00:48:52.260 --> 00:48:52.340
Okay.

00:48:57.480 --> 00:48:57.920
Okay.

00:49:01.060 --> 00:49:01.920
Okay.

00:49:03.500 --> 00:49:04.900
Okay.

00:49:39.240 --> 00:49:40.640
Okay.

00:49:40.860 --> 00:49:42.000
Okay.

00:49:46.760 --> 00:49:48.160
Okay.

00:49:57.700 --> 00:49:59.100
Okay.

00:50:03.140 --> 00:50:04.540
Okay.

00:50:04.540 --> 00:50:04.780
Okay.

00:50:05.540 --> 00:50:06.120
Okay.

00:50:10.480 --> 00:50:11.880
Okay.

00:50:24.440 --> 00:50:25.840
Okay.

00:50:25.840 --> 00:50:27.140
Okay.

00:50:27.400 --> 00:50:28.260
Okay.

00:50:30.600 --> 00:50:32.000
Okay.

00:50:33.880 --> 00:50:35.280
Okay.

00:50:35.280 --> 00:50:36.740
Okay.

00:50:40.620 --> 00:50:42.020
Okay.

00:51:03.740 --> 00:51:05.140
Okay.

00:51:05.140 --> 00:51:05.680
Okay.

00:51:08.780 --> 00:51:10.180
Okay.

00:51:13.060 --> 00:51:14.460
Okay.

00:51:24.640 --> 00:51:26.040
Okay.

00:51:33.180 --> 00:51:34.580
Okay.

00:51:34.980 --> 00:51:35.100
Okay.

00:51:38.180 --> 00:51:39.500
Okay.

00:51:39.520 --> 00:51:39.540
Okay.

00:51:42.520 --> 00:51:43.840
Okay.

00:51:43.840 --> 00:51:45.140
Okay.

00:52:11.800 --> 00:52:13.160
Okay.

00:52:13.160 --> 00:52:13.180
Okay.

00:52:13.180 --> 00:52:13.860
Okay.

00:52:15.140 --> 00:52:16.500
Okay.

00:52:16.500 --> 00:52:16.980
Okay.

00:52:23.340 --> 00:52:24.740
Okay.

00:52:24.740 --> 00:52:24.840
Okay.

00:52:27.760 --> 00:52:29.160
Okay.

00:52:30.660 --> 00:52:31.460
Okay.

00:52:33.780 --> 00:52:35.180
Okay.

00:52:35.180 --> 00:52:35.480
Okay.

00:52:35.480 --> 00:52:36.460
Okay.

00:52:42.400 --> 00:52:43.800
Okay.

00:52:43.940 --> 00:52:45.340
Okay.

00:52:45.340 --> 00:52:46.460
Okay.

00:52:46.460 --> 00:52:46.520
Okay.

00:52:47.520 --> 00:52:47.940
Okay.

00:52:51.640 --> 00:52:52.900
Okay.

00:52:54.400 --> 00:52:55.800
Okay.

00:53:08.660 --> 00:53:10.060
Okay.

00:53:26.620 --> 00:53:28.020
Okay.

00:53:52.840 --> 00:53:54.240
Okay.

00:54:01.680 --> 00:54:03.080
Okay.

00:54:13.640 --> 00:54:20.340
All right, and I'm back here with you. Let me know if you're around.

00:54:24.420 --> 00:54:25.460
I'm around.

00:54:27.500 --> 00:54:28.540
Welcome back.

00:54:30.820 --> 00:54:36.800
I think maybe we, most of the guys, they will come back in five minutes, just one minute.

00:54:36.960 --> 00:54:37.540
It's all right.

00:54:40.620 --> 00:54:42.620
We can wait for a bit, that's all right.

00:54:44.200 --> 00:54:45.880
You don't know, you won't say anything.

00:54:46.160 --> 00:54:47.380
I wonder what's for lunch.

00:54:59.460 --> 00:55:03.380
It's five past three in the afternoon.

00:55:05.160 --> 00:55:06.640
12 hours.

00:55:06.880 --> 00:55:08.460
Yes, 12 hours.

00:55:08.460 --> 00:55:09.200
Where are you based?

00:55:09.660 --> 00:55:11.700
I'm based in Dubai.

00:55:13.560 --> 00:55:14.620
Oh, okay.

00:55:15.080 --> 00:55:15.760
Just like the way.

00:55:17.260 --> 00:55:18.260
Oh, okay.

00:55:18.780 --> 00:55:22.560
So he's on my team. I know him for many years.

00:55:23.220 --> 00:55:25.160
It said, yeah, it's too hot at that site.

00:55:26.520 --> 00:55:29.780
Yeah, it depends on your definition of too hot, so.

00:55:30.800 --> 00:55:32.560
Anything from 25 degrees.

00:55:32.740 --> 00:55:33.760
That's our winter.

00:55:35.900 --> 00:55:37.560
And I'm not joking.

00:55:37.560 --> 00:55:41.180
It is winter right now and it is 25 degrees.

00:55:45.520 --> 00:55:47.900
Our summer starts at 14.

00:55:50.200 --> 00:55:51.620
Yeah, it starts at 14.

00:55:53.500 --> 00:56:05.020
Yeah, it would be considered as pleasant.

00:56:10.220 --> 00:56:15.400
The worst I have, I mean it can reach 50 here as well.

00:56:15.400 --> 00:56:22.800
Peak of the summer, you expect 42, 44 kind of on a daily basis.

00:56:24.160 --> 00:56:28.460
It can be 40 in the middle of the night.

00:56:31.040 --> 00:56:35.640
Dubai being coastal, so, you know, it gets humid as well.

00:56:36.300 --> 00:56:38.620
So that's more of a challenge than the heat.

00:56:39.500 --> 00:56:41.940
The worst I have seen is 56.

00:56:43.700 --> 00:56:43.940
56.

00:56:45.000 --> 00:56:45.260
Yeah.

00:56:47.140 --> 00:56:50.760
I was in Iraq for a few months and I've seen 56.

00:56:51.380 --> 00:56:54.460
I've seen like 44 at 7 in the morning.

00:56:57.500 --> 00:56:59.680
So 25 is winter.

00:56:59.700 --> 00:57:00.680
I guess you guys don't complain.

00:57:03.880 --> 00:57:04.640
25.

00:57:04.640 --> 00:57:18.120
Yeah, we don't know what is a minus.

00:57:19.900 --> 00:57:22.260
It's not part of the mathematics that we know.

00:57:22.280 --> 00:57:23.420
Give me one quick second.

00:57:23.440 --> 00:57:25.280
I'll be back and then we get started.

00:57:26.160 --> 00:57:26.720
Okay.

00:57:32.460 --> 00:57:34.060
Hi, sorry I missed that.

00:57:34.060 --> 00:57:36.000
Okay.

00:58:02.180 --> 00:58:04.980
All right.

00:58:04.980 --> 00:58:05.560
I'm back.

00:58:06.160 --> 00:58:07.380
Just moved to a new home.

00:58:07.580 --> 00:58:08.960
So everyone's coming knocking in.

00:58:09.020 --> 00:58:17.240
You have the gardeners and the landscapers and everybody offering services all the time.

00:58:18.160 --> 00:58:18.340
All right.

00:58:18.420 --> 00:58:23.900
Assuming everyone's here with me, Vinny, Ivan.

00:58:26.980 --> 00:58:27.460
Okay.

00:58:28.920 --> 00:58:29.820
All right, all right.

00:58:29.920 --> 00:58:31.140
So welcome back.

00:58:32.660 --> 00:58:35.840
We are on a journey in the world of Linux.

00:58:36.900 --> 00:58:40.580
Hopefully we have seen a few things we haven't tried before.

00:58:41.980 --> 00:58:46.180
Any thoughts on what you have seen so far just in terms of Linux fundamentals?

00:58:48.120 --> 00:58:48.800
No, it's good.

00:58:49.060 --> 00:58:50.180
It's quite exciting.

00:59:16.120 --> 00:59:17.700
That's good to hear.

00:59:17.700 --> 00:59:22.020
So as we can see that we might have done some of these things before.

00:59:22.240 --> 00:59:24.160
There might be some gaps here and there.

00:59:24.480 --> 00:59:28.800
It's just nice to know some tricks around it.

00:59:29.040 --> 00:59:29.300
All right.

00:59:29.400 --> 00:59:29.940
Let's see.

00:59:29.980 --> 00:59:33.580
We can continue to work on our environment.

00:59:34.240 --> 00:59:36.400
We'll just see how to edit files.

00:59:36.700 --> 00:59:47.400
And then we will move our how do we work on text files because a lot of if you are doing administration to some extent, there is some file editing.

00:59:47.400 --> 00:59:52.220
Looking at the configuration, that's quite common as well.

00:59:53.060 --> 01:00:01.260
And then we will move towards like tips and tricks on the shell, the environment itself.

01:00:02.000 --> 01:00:04.340
There are a few things that we can do.

01:00:04.620 --> 01:00:08.020
I'm going to switch back to.

01:00:12.200 --> 01:00:19.620
I don't have the same presentation deck as well as a small document which kind of summarizes many of these.

01:00:20.100 --> 01:00:26.440
I'll make sure that Kobe passes on to you as part of the materials that he typically shares in the cloud.

01:00:27.100 --> 01:00:31.940
So you'll have access to that as well in case you want something just as a reference.

01:00:31.940 --> 01:00:36.940
I'm going to look back at some of this content and other content as well.

01:00:38.080 --> 01:00:39.560
So we've seen a few things.

01:00:39.660 --> 01:00:43.260
The last thing that we saw was hard links.

01:00:43.640 --> 01:00:50.820
If you haven't tried the hard link path, I would recommend is do so before lunch.

01:00:51.060 --> 01:00:55.420
If you didn't have the opportunity, please try it out.

01:00:59.480 --> 01:01:02.220
Just so that it's not missed.

01:01:03.200 --> 01:01:11.800
The key is that when I created the symbolic link with the command lm, I did not do minus s.

01:01:13.100 --> 01:01:17.540
And that's what makes it a hard link because that minus s is missing.

01:01:18.500 --> 01:01:23.060
Symbolic link or a typical shortcut, as you see.

01:01:23.080 --> 01:01:31.820
The thing to note with the hard links is that when you do that ls minus l, you see that number increment.

01:01:33.440 --> 01:01:36.920
And we equated that to doors of a room.

01:01:39.460 --> 01:01:43.840
As long as one door is open, you have access to that particular resource.

01:01:51.920 --> 01:01:53.180
Give that a try.

01:02:00.420 --> 01:02:00.880
Let's see.

01:02:06.920 --> 01:02:09.920
Let me just find it out.

01:02:14.320 --> 01:02:15.820
Akana, you've done the same.

01:02:18.580 --> 01:02:19.040
Hi.

01:02:20.700 --> 01:02:22.000
Welcome back.

01:02:24.160 --> 01:02:25.180
Press the mute button.

01:02:25.180 --> 01:02:27.960
That's such a problem.

01:02:37.160 --> 01:02:38.680
It's moving.

01:02:40.280 --> 01:02:42.680
Don't worry, I'm following.

01:02:43.540 --> 01:02:44.660
I trust you, sir.

01:02:46.220 --> 01:02:47.700
Let's ask if any questions.

01:02:49.920 --> 01:02:55.700
Whenever there's something new that I've never tried before, I usually just do it.

01:02:59.020 --> 01:03:03.560
It's just that sometimes we might be building on something, so that's all.

01:03:03.860 --> 01:03:05.820
As long as you're comfortable, it's all good.

01:03:06.820 --> 01:03:08.380
I'm taking notes as well.

01:03:08.380 --> 01:03:10.840
Zola chose that after this meeting.

01:03:24.220 --> 01:03:26.900
I don't know if you have ever tried this command.

01:03:26.960 --> 01:03:29.680
It just popped in my head, as you said, taking notes.

01:03:31.060 --> 01:03:32.400
I usually like this command.

01:03:32.840 --> 01:03:35.820
I run the command for the script, give some log file.

01:03:35.820 --> 01:03:48.640
Now what happens is everything I do, the output of the command as well as the output, I just do exit.

01:03:49.620 --> 01:03:59.120
And now I have a log file, which contains everything I did.

01:04:08.340 --> 01:04:10.080
Looks very interesting.

01:04:10.400 --> 01:04:12.520
Let's check the manual now for the script.

01:04:14.680 --> 01:04:17.240
It's just like a screen capture of sorts.

01:04:18.540 --> 01:04:19.920
Can I go back, please?

01:04:22.020 --> 01:04:23.360
I run this command.

01:04:23.380 --> 01:04:25.720
I can show you a bit of help on it.

01:04:39.600 --> 01:04:40.740
That's a good one.

01:04:41.080 --> 01:04:50.140
Yeah, sometimes you look for the help for something and then 10 new words pop up and then you go into that rabbit hole and you're like, you know what, never mind.

01:04:51.100 --> 01:04:52.660
Just take your word for it.

01:04:52.660 --> 01:04:54.660
It does create a time script.

01:04:59.480 --> 01:05:04.340
So just to kind of what it does here is this.

01:05:04.340 --> 01:05:12.880
If I script my log, pretty much anything that I do from now on, on this terminal.

01:05:12.880 --> 01:05:18.940
The output of and the commands will be captured into that log file.

01:05:20.260 --> 01:05:23.580
So if I say, hey, show me what's in the OPT folder.

01:05:23.580 --> 01:05:24.680
Well, it's blank.

01:05:27.480 --> 01:05:30.880
Show me you name minus a.

01:05:32.160 --> 01:05:34.180
OK, that's the system details.

01:05:35.040 --> 01:05:36.920
Who is on this system?

01:05:37.060 --> 01:05:41.140
You know, I'm just typing a bunch of commands with some outputs coming in.

01:05:41.140 --> 01:05:43.080
I do exit.

01:05:44.140 --> 01:05:51.920
Now it has stopped recording this terminal session and the command and earlier I mentioned a log file.

01:05:52.080 --> 01:05:54.080
So let me read.

01:06:01.640 --> 01:06:06.540
And as the output of what I did, just saying.

01:06:06.540 --> 01:06:08.260
You don't have to do this.

01:06:08.380 --> 01:06:15.980
It's a nice way to just to keep track of what you are doing and to keep track of the output of the commands.

01:06:17.560 --> 01:06:18.360
If you want to go back.

01:06:25.400 --> 01:06:35.080
Part of since we were working on the file system, I think part of working in the file system, especially in the Linux Unix environment,

01:06:35.080 --> 01:06:37.820
is working with text files.

01:06:39.000 --> 01:06:43.500
A huge part of our system configuration is stored as text files.

01:06:44.020 --> 01:06:50.960
And historically making changes to the system configuration required editing some sort of a text file.

01:06:51.060 --> 01:06:59.120
Now there are the classic old school text editors, which are terminal only, not based on the graphical interface.

01:07:00.240 --> 01:07:07.780
Tools like V.I. and that we have the friendlier tools like Nano or G edit.

01:07:08.280 --> 01:07:11.120
And you pick whichever editor you are comfortable with.

01:07:11.820 --> 01:07:12.920
Take an example.

01:07:16.200 --> 01:07:16.860
My.

01:07:20.440 --> 01:07:23.820
And in this case, well, that kind of exists.

01:07:23.820 --> 01:07:27.020
And then all notes.

01:07:29.820 --> 01:07:31.080
And oh.

01:07:33.820 --> 01:07:35.620
So here is a new file.

01:07:43.820 --> 01:07:44.660
Editor.

01:07:45.980 --> 01:07:50.660
And those carrot signs basically are the.

01:07:51.900 --> 01:07:54.580
Commands that we can give out.

01:07:55.760 --> 01:07:56.420
Exit.

01:07:57.120 --> 01:07:57.760
Save it.

01:07:58.520 --> 01:08:01.020
If I do control X.

01:08:01.960 --> 01:08:03.900
This do you want to say what you have done?

01:08:05.560 --> 01:08:05.660
Yes.

01:08:06.780 --> 01:08:08.200
What is the file name?

01:08:08.640 --> 01:08:10.080
I'll keep it as notes.

01:08:10.080 --> 01:08:15.920
And I'll now create a text file.

01:08:20.360 --> 01:08:21.520
Give it a try.

01:08:27.640 --> 01:08:33.560
So we are again very classic, very powerful, but at the same time a little bit complicated.

01:08:35.120 --> 01:08:38.580
People might prefer a friendlier version.

01:08:38.720 --> 01:08:40.640
V.I. person as well.

01:08:40.940 --> 01:08:43.320
I don't use a lot of these editors.

01:08:45.420 --> 01:08:45.960
Maybe I could.

01:08:46.060 --> 01:08:49.320
Then we have commands like G edit and many other editors.

01:08:49.580 --> 01:08:50.780
It's a text editor.

01:08:55.580 --> 01:08:57.360
So it's a text editor.

01:08:57.760 --> 01:09:01.060
I would say at the end of the day, just pick the one.

01:09:02.240 --> 01:09:04.040
So this one is default.

01:09:04.600 --> 01:09:08.260
You would see them in most if not necessarily all.

01:09:09.400 --> 01:09:11.740
I think these days you're going to see them almost.

01:09:13.120 --> 01:09:19.260
And that's where if you're not sure, you go back to something like V.I. for instance.

01:09:19.500 --> 01:09:19.880
Doesn't you?

01:09:20.840 --> 01:09:21.400
Yeah.

01:09:21.760 --> 01:09:26.320
I have to save and you have a control X.

01:09:29.580 --> 01:09:31.540
So it will save automatically.

01:09:32.040 --> 01:09:34.220
It will ask you most likely.

01:09:34.900 --> 01:09:36.860
Oh, OK.

01:09:38.520 --> 01:09:40.320
Save, modify, OK.

01:09:41.800 --> 01:09:42.100
Yes.

01:09:42.100 --> 01:09:43.780
Write name to write, notes.

01:09:45.780 --> 01:09:46.020
OK.

01:09:46.020 --> 01:09:46.480
All right.

01:09:47.180 --> 01:09:49.180
So just a quick question.

01:09:49.180 --> 01:09:59.040
When saving that name that was created example notes now.

01:10:03.780 --> 01:10:05.400
And give a different file name as well.

01:10:05.560 --> 01:10:08.300
It should just save it.

01:10:08.580 --> 01:10:09.760
Likely as a saver.

01:10:09.760 --> 01:10:10.860
Yes.

01:10:18.660 --> 01:10:25.320
I think somebody muted me there.

01:10:25.860 --> 01:10:35.780
So what I wanted to find out is does it change the original file name or does it just create a copy and then yes.

01:10:35.780 --> 01:10:39.820
And then you can add anything to save.

01:10:41.880 --> 01:10:45.520
Just add something and then exit, save.

01:10:47.080 --> 01:10:51.840
And then here, if you just change the file name and then enter.

01:10:52.700 --> 01:10:52.760
Yes.

01:10:53.380 --> 01:10:56.620
Does it rename or does it create a different copy?

01:10:58.740 --> 01:11:02.520
It didn't ask you, right?

01:11:02.520 --> 01:11:05.480
So if I said yes, then I probably end up with two files.

01:11:07.160 --> 01:11:07.420
OK.

01:11:07.520 --> 01:11:09.340
Now try opening notes.

01:11:15.160 --> 01:11:17.580
Because we did the file save as.

01:11:21.480 --> 01:11:23.580
I'm just reading the file.

01:11:30.580 --> 01:11:32.640
That's like file save as.

01:11:37.280 --> 01:11:38.580
That's the new file.

01:11:40.060 --> 01:11:43.440
That's the old one.

01:11:44.760 --> 01:11:46.180
Somebody keeps meeting me.

01:11:47.320 --> 01:11:48.480
It's more the same as.

01:11:49.120 --> 01:11:51.260
Let's get into that just after this.

01:11:51.380 --> 01:11:53.040
You're one step ahead of me.

01:11:53.280 --> 01:11:57.140
But yes, you're getting into that just after this once we create some.

01:11:59.560 --> 01:12:02.720
Cat is good for things that show up on a single page.

01:12:03.080 --> 01:12:08.200
More allows you to read large text outputs with more capabilities.

01:12:09.580 --> 01:12:11.680
Typically by habit, I just do more.

01:12:12.580 --> 01:12:15.380
I do cat when I know that it's going to fit within one page.

01:12:16.560 --> 01:12:17.240
OK.

01:12:18.140 --> 01:12:19.480
Everyone OK with this?

01:12:21.080 --> 01:12:21.340
Yes.

01:12:27.100 --> 01:12:28.460
All right.

01:12:29.320 --> 01:12:30.140
Here we go.

01:12:31.400 --> 01:12:34.300
So that's just an example of a text editor.

01:12:35.440 --> 01:12:40.360
When it comes to reading text files, first of all, just a reminder.

01:12:40.360 --> 01:12:48.240
Use the file command to see if something is a text document.

01:12:49.560 --> 01:12:52.340
If I want to read it, I can always use cat.

01:12:53.180 --> 01:12:58.060
It's just technically to catalog and it just prints out the file onto the terminal.

01:12:58.720 --> 01:13:04.280
If you're working on large files, you probably want to work on the command more.

01:13:05.100 --> 01:13:10.280
For instance, the password file is a big file and a lot of users define into it.

01:13:11.000 --> 01:13:15.800
So with more, as you can see, it has now paused on one single page.

01:13:16.180 --> 01:13:23.880
I can scroll with the space bar or the key, but the enter key enter goes kind of line by line.

01:13:25.380 --> 01:13:28.700
And space goes page by page.

01:13:32.080 --> 01:13:40.400
If you're reading a long document and you found what you're looking for, you don't have to read through the rest of it.

01:13:40.480 --> 01:13:43.420
You can just press Q to quit.

01:13:48.240 --> 01:13:53.720
More is also handy because it allows you to search for something in the output.

01:13:55.580 --> 01:14:07.000
So we can kind of do a quick filter and look for something within that document itself or that text output, which is very handy.

01:14:07.000 --> 01:14:18.580
So if I'm looking at more right now, instead of pressing enter or space, I can just put a slash and type something I'm looking for.

01:14:20.400 --> 01:14:32.040
And it kind of scrolls is not the friendliest tool in the world, but it kind of scrolls to bring that part of the page where what you're looking for is there.

01:14:32.220 --> 01:14:42.220
You might still have to hunt around looking for it exactly where that is, but it just brings that part in onto the screen.

01:14:42.240 --> 01:14:45.460
So many things can be done with more.

01:14:47.000 --> 01:14:51.240
If you just press H for help.

01:14:54.600 --> 01:14:59.480
While you are doing more, it tells you there is a lot you can do.

01:15:01.860 --> 01:15:07.940
You can fire up VI from the current line. You can go forward and back.

01:15:07.940 --> 01:15:16.320
It's just plenty of options. There's a very interesting one. I want to execute the command while I'm reading that file. That's kind of nice.

01:15:17.480 --> 01:15:19.640
So if I'm reading a file.

01:15:21.660 --> 01:15:25.880
I don't want to exit, go to the shell and come back to this file.

01:15:27.680 --> 01:15:30.500
I can just do exclamation mark.

01:15:32.500 --> 01:15:34.780
And run a command.

01:15:39.860 --> 01:15:42.260
I get the output right there.

01:15:44.720 --> 01:15:57.080
I can still continue to read the file, so this can be handy if you are like reading some configuration file and you want to make some changes, but don't want to hop in and out again and again.

01:15:58.320 --> 01:16:01.080
Very powerful, very useful. This is more.

01:16:02.940 --> 01:16:06.260
So here, if you are already in the file.

01:16:08.240 --> 01:16:14.440
Here you see with the PWD, you are only checking pretty much where you are at the moment.

01:16:16.900 --> 01:16:20.300
But are you only, I mean what are your limitations?

01:16:21.900 --> 01:16:27.120
Just run whatever you run, we'll just run in a sub shell. That's it.

01:16:27.760 --> 01:16:30.340
What do you mean by limitations? I'm not sure.

01:16:31.000 --> 01:16:41.860
So while opening this file, can I just randomly put Yatharam in here and just exclamation and continue.

01:16:45.340 --> 01:16:48.200
It just brings you back.

01:16:48.460 --> 01:16:51.520
It executes that one command and brings you back into more.

01:16:51.520 --> 01:16:52.700
It's hard to forget.

01:16:54.820 --> 01:16:57.080
I'm still in this file.

01:17:07.880 --> 01:17:09.400
Just can be useful.

01:17:10.940 --> 01:17:17.000
Every command has so many options in this platform, so everything boils down to what you need.

01:17:17.720 --> 01:17:21.520
When you need in terms of capabilities, the terminals are brilliant.

01:17:22.060 --> 01:17:23.680
The shells allow you to do a lot.

01:17:24.520 --> 01:17:27.220
Alright, hopefully that answers the question. That is more.

01:17:28.720 --> 01:17:32.140
In many cases, you don't want to read the entire file.

01:17:35.340 --> 01:17:39.900
So we have cat, which kind of reads the file, which we saw that.

01:17:40.080 --> 01:17:47.560
But we also have tack in Linux, which also reads the file just in the opposite sequence.

01:17:49.800 --> 01:17:53.480
That was the last line. Now here it has become the first line.

01:17:56.580 --> 01:17:59.660
So it just reads the file but from bottom up.

01:18:03.340 --> 01:18:07.320
Sometimes you want to see the last few entries first.

01:18:07.520 --> 01:18:10.460
That is some way of doing everything.

01:18:11.180 --> 01:18:16.140
So you can read top down, you can read bottom up opposite of cat.

01:18:18.040 --> 01:18:20.340
You can also in many cases we do use this.

01:18:20.440 --> 01:18:24.900
We can just read some specific lines at the start or at the end.

01:18:25.380 --> 01:18:27.520
Typically we use command like head.

01:18:27.520 --> 01:18:39.600
Give me the first five lines from host or the opposite, head and tail.

01:18:40.020 --> 01:18:43.820
Give me the last five lines.

01:18:46.720 --> 01:18:54.800
So it can be handy if I don't want to see everything but just the start or the end of a text file or what I'm looking for.

01:18:56.300 --> 01:18:59.180
Give it a try. Very simple one.

01:18:59.780 --> 01:19:00.340
Head and tail.

01:19:02.840 --> 01:19:04.960
Other things that you can do again.

01:19:04.960 --> 01:19:12.900
So this is still working on the file system, specifically working with the text files.

01:19:14.220 --> 01:19:15.280
This kind of works.

01:19:16.340 --> 01:19:17.340
And we have tail.

01:19:17.340 --> 01:19:28.140
We have another one that can help us sometimes in certain scenarios where we need to know how many lines are there.

01:19:28.720 --> 01:19:35.680
The command I'm talking about is called as word count and it is called as wc.

01:19:35.700 --> 01:19:44.580
So if I just run this command word count and if I press enter it just gives me nothing but a blank screen.

01:19:44.580 --> 01:19:47.560
So what I'm doing here is I'm going to type a few things.

01:19:47.560 --> 01:19:50.020
This is one line.

01:19:50.560 --> 01:19:52.280
This is another.

01:19:53.800 --> 01:19:59.720
We have one, two, three, four, five, six, seven, eight, nine, ten, eleven.

01:20:01.220 --> 01:20:02.500
Eleven words.

01:20:04.860 --> 01:20:09.640
Now that I'm on a blank line, I'm going to close this file.

01:20:09.640 --> 01:20:16.260
The Linux Unix shortcut to close the file is control D. D for delta.

01:20:17.040 --> 01:20:18.460
It is end of file.

01:20:18.620 --> 01:20:23.160
I do control D and word count is counting this text.

01:20:24.820 --> 01:20:28.100
And it is telling me I have three what?

01:20:32.280 --> 01:20:32.880
Three lines.

01:20:33.580 --> 01:20:34.640
Three lines. Eleven.

01:20:35.900 --> 01:20:36.960
Eleven words.

01:20:36.960 --> 01:20:41.980
And fifty characters in total.

01:20:42.240 --> 01:20:44.620
Yeah, fifty characters in total.

01:20:47.100 --> 01:20:51.860
And remember as I said, sometimes you learn things and you're like, when am I ever going to need this?

01:20:52.500 --> 01:20:55.800
Maybe I just want to know how many users are in my machine.

01:20:56.900 --> 01:21:00.740
Count the number of lines in that file.

01:21:05.500 --> 01:21:08.440
Well, I know that each line is a user.

01:21:09.460 --> 01:21:13.440
So I can quickly tell I have 50 users defined in this OS.

01:21:13.520 --> 01:21:15.860
The use cases come over a period of time.

01:21:16.840 --> 01:21:18.220
Some you never use.

01:21:19.100 --> 01:21:21.100
Some you do. This is word count.

01:21:22.140 --> 01:21:25.100
Simple tricks, but they can be quite handy as well.

01:21:25.100 --> 01:21:26.420
All right.

01:21:26.420 --> 01:21:41.180
So now from the file system, let's move more towards the shell environment and some tips and tricks around working in the shell environment.

01:21:41.640 --> 01:21:51.120
We are comfortable with text files, with the directories, with manipulating, with editing, with moving around with symbolic links.

01:21:51.820 --> 01:21:57.800
Let's now have a look at just some of the tips and tricks in terms of how to use the command line.

01:21:58.380 --> 01:22:11.660
The very first few things we need to know is what you are executing, where it is, and how to create aliases to make your life that bit easier.

01:22:12.660 --> 01:22:20.420
Some of you already mentioned that command, for example, which WC, where is this executable?

01:22:21.020 --> 01:22:28.920
The location of this executable is in user bin, basically the binary files for everybody.

01:22:30.500 --> 01:22:38.760
That location means a common system tool, which IP.

01:22:40.360 --> 01:22:46.580
This tool or executable is located in S bin.

01:22:47.300 --> 01:22:51.900
Single user, super user basically means it's a system administration tool.

01:22:52.060 --> 01:23:00.000
So what we are executing on the shell as commands or executables can be in different parts.

01:23:00.640 --> 01:23:05.920
For example, when I do CP copy something.

01:23:05.920 --> 01:23:10.240
The copy is located in the USR bin.

01:23:10.340 --> 01:23:14.260
So that means a common binary for system.

01:23:14.400 --> 01:23:23.800
When I use the command CP, let's say to copy the files.

01:23:25.240 --> 01:23:29.700
We saw this earlier that CP doesn't care if we are overriding a file.

01:23:29.700 --> 01:23:30.880
I did it twice.

01:23:31.600 --> 01:23:32.800
No questions asked.

01:23:33.000 --> 01:23:38.700
Anyone remembers how to make CP ask us in case we are overriding something?

01:23:45.740 --> 01:23:46.980
Minus I.

01:23:54.820 --> 01:24:03.840
So it would probably be very nice if every time I ran the CP command that actually replaced it with the CP minus I.

01:24:03.860 --> 01:24:04.440
That would be nice.

01:24:04.500 --> 01:24:07.240
And this is what we call as creating an alias.

01:24:08.240 --> 01:24:13.600
You execute the alias and it is substituting it for something else.

01:24:13.600 --> 01:24:15.180
How do I do that?

01:24:17.200 --> 01:24:25.480
Maybe just like this alias CP equals to please pay attention to the spaces and the quotations.

01:24:26.960 --> 01:24:27.960
This is single quotation.

01:24:27.960 --> 01:24:33.220
I'm going to say CP equals to be space minus.

01:24:38.860 --> 01:24:43.740
And now if I copy again, just like I normally did earlier.

01:24:45.620 --> 01:24:46.280
Something happens.

01:24:50.460 --> 01:24:53.800
Seems to be replaced with a CP minus I.

01:24:53.880 --> 01:24:56.180
Can I please request everyone to try this out?

01:24:56.180 --> 01:24:59.440
I can see Vinny is already doing the same.

01:25:00.240 --> 01:25:13.820
Would this be just locally for you, your machine or even if Lucky accesses his CPs then it will override to CP minus I.

01:25:13.880 --> 01:25:16.540
So let's not even talk about systems.

01:25:16.720 --> 01:25:18.400
Let's even look at terminals.

01:25:18.660 --> 01:25:20.180
I have another terminal open here.

01:25:24.800 --> 01:25:28.700
Doesn't seem to be caring about that alias.

01:25:29.140 --> 01:25:32.420
So your terminal is a programmable environment.

01:25:32.880 --> 01:25:39.960
In this case, what we are simply seeing is programming it temporarily specific to that terminal.

01:25:41.260 --> 01:25:46.500
And then if you want any of this customization of programmability to survive,

01:25:46.500 --> 01:25:53.260
then as a user, there are a few hidden files in your home directory where you can make some of these things permanent.

01:25:53.660 --> 01:26:03.720
And as system admin, if you want to make some changes like this for all the users, then there are some other configuration files that you can work on.

01:26:03.780 --> 01:26:07.820
So that way you kind of make it more persistent system wide.

01:26:08.140 --> 01:26:11.540
This is temporary programming of the terminal.

01:26:12.480 --> 01:26:18.300
OK, so as you can see, the other terminal couldn't care less.

01:26:20.360 --> 01:26:24.740
Wherever we get back to this one.

01:26:26.560 --> 01:26:29.000
So what we can do here.

01:26:30.240 --> 01:26:37.000
Run the command alias just to see do any aliases already exist.

01:26:47.520 --> 01:26:53.540
Looks like it does. There is some aliases. L is actually LS and LA and LL.

01:26:53.540 --> 01:26:56.560
And you can make your own aliases for any commands that you like.

01:26:56.560 --> 01:27:00.300
Just pay attention to the quotations in use.

01:27:02.980 --> 01:27:13.760
And there is no spacing here between the alias and the command that replaces the alias itself.

01:27:15.100 --> 01:27:18.320
If you don't want the alias, it's fine. We can unalias it.

01:27:18.400 --> 01:27:19.220
But before we go there,