WEBVTT

00:05.560 --> 00:11.230
So in the last lesson, during a couple of scripts, I mentioned the word cheroot and went over it kind

00:11.230 --> 00:11.840
of briefly.

00:12.220 --> 00:17.800
So in this lesson, what I thought I do is do more of a deep dive into a root so you can better understand

00:17.800 --> 00:18.430
what it is.

00:19.440 --> 00:25.530
All right, so right now I'm booted from recovery and I'm going to go to a terminal, and so this is

00:25.530 --> 00:30.720
kind of like the same environment we would have been in if we were doing bootstrap or we're in the recovery

00:30.750 --> 00:31.460
environment.

00:31.830 --> 00:38.690
So if I go ahead and take a look at where I am now, I'm basically in route's home folder.

00:38.820 --> 00:45.210
And if I go ahead and I try to create a directory, it says that I'm in a read only file system.

00:45.390 --> 00:50.190
And that's because the recovery partition is a read only image.

00:51.200 --> 01:01.640
So if I don't see you till I get my computer name, then you see it returns, Mac, and if I do a get

01:01.640 --> 01:04.580
hostname, you can see it's not set.

01:05.120 --> 01:09.400
Now, remember, we talked about that computers out of the box don't get a hostname.

01:09.980 --> 01:19.280
And so in this read-only recovery partition bood environment, the computer name was said by Apple to

01:19.280 --> 01:19.740
Mac.

01:21.110 --> 01:24.480
So let's go ahead and cheroot into Macintosh hard drive.

01:24.900 --> 01:31.410
Now notice what our prompt says are shall prompt says it, says Basche right now.

01:31.820 --> 01:37.130
Now I'm going to go ahead and Trute as user route into volumes.

01:37.130 --> 01:38.240
Macintosh Hard Drive.

01:38.960 --> 01:47.840
And you see now my prompt has changed and if I see where my current directory is, you can see I've

01:47.990 --> 01:49.110
also changed.

01:49.760 --> 01:57.950
Now if I go into my home directory, you can see that's Bahru and if I make a directory test, it stays

01:57.950 --> 02:02.290
there because I'm in a read right file system.

02:02.330 --> 02:07.340
I'm on the Macintosh hard harddrive now on a Macintosh hard drive.

02:07.910 --> 02:10.930
The user's folder is in the root of Macintosh hard drive.

02:10.940 --> 02:13.160
So if I go to see one user's.

02:14.430 --> 02:15.810
You see, it works.

02:15.840 --> 02:21.120
I'm in the user's folder, and if I do a listing, you can see that I've got my administrator shared

02:21.120 --> 02:29.370
and my Mojave folders and I can even go into the have a folder into the in into the documents folder

02:29.580 --> 02:32.310
and see what was it and see if there was anything in it.

02:33.620 --> 02:36.470
Now, if I exit the Trute environment.

02:37.680 --> 02:47.820
And I try to go to users, it's it's not there there is no directory if I go to the root of the recovery

02:47.820 --> 02:48.630
partition.

02:49.870 --> 02:58.090
You can see that I don't have a user's folder now if I commute back into.

02:59.920 --> 03:02.620
The Macintosh hard drive and I go to route.

03:03.600 --> 03:08.250
You can see that my file system looks different and I have the user's folder.

03:09.420 --> 03:14.670
All right, so we're in the current environment and what we did in one of the scripts is we renamed

03:14.670 --> 03:15.350
the computer.

03:15.930 --> 03:24.600
Now if I do and Sue to get computer name, you can see I'm getting the computer name return because

03:25.050 --> 03:27.900
I'm basically logged into the Macintosh hard drive.

03:27.990 --> 03:33.480
And whatever commands I type in, I'm going to get returned like I'm logged into the Macintosh hard

03:33.480 --> 03:33.810
drive.

03:34.260 --> 03:44.670
So again, I could do get hostname and I see that I get my proper name and as soon as I exit and I type

03:44.670 --> 03:52.230
in the exact same command, now I get different results because now I am applying commands to the file

03:52.230 --> 03:55.590
system in which I'm booted, which is the recovery partition.

03:56.400 --> 04:01.950
So I hope that clarifies what a Cerruti environment is and why I was using it.

04:01.950 --> 04:02.830
And bootstrappers.
