WEBVTT - This file was automatically generated by VIMEO

0
00:00:04.200 --> 00:00:07.500
Hey, welcome back. So in this lesson, we

1
00:00:07.500 --> 00:00:11.100
 are going to learn about the home directory. Now as

2
00:00:10.100 --> 00:00:13.600
 the name suggests home. This is

3
00:00:13.600 --> 00:00:16.200
 the home directory or the home folder for

4
00:00:16.200 --> 00:00:19.300
 each user. Now. For example, if you

5
00:00:19.300 --> 00:00:22.200
 use a username or if you add a user

6
00:00:22.200 --> 00:00:25.800
 Rohit into a computer you have a home folder

7
00:00:25.800 --> 00:00:28.300
 for that user, which is Rohit into the

8
00:00:28.300 --> 00:00:31.300
 home directory. So it would look something like

9
00:00:31.300 --> 00:00:35.300
 this which is slash home slash Rohit. Now

10
00:00:34.300 --> 00:00:38.700
 this home folder contains Rohit

11
00:00:37.700 --> 00:00:40.300
 users data files

12
00:00:40.300 --> 00:00:43.500
 or any user specific configuration files that

13
00:00:43.500 --> 00:00:46.500
 he makes now you should remember one very important

14
00:00:46.500 --> 00:00:49.400
 thing that each user only has

15
00:00:49.400 --> 00:00:52.800
 right access to their own home folder. That

16
00:00:52.800 --> 00:00:55.500
 means Rohit cannot modify if

17
00:00:55.500 --> 00:00:58.800
 there is any other user XY said or Rohit

18
00:00:58.800 --> 00:01:01.300
 cannot modify the root user's home directory that

19
00:01:01.300 --> 00:01:04.000
 is slash route now to do

20
00:01:04.200 --> 00:01:08.000
That he should have elevated privileges or

21
00:01:07.400 --> 00:01:11.100
 permissions from the root user. Alright, so

22
00:01:10.100 --> 00:01:13.400
 we understood basically what is a home

23
00:01:13.400 --> 00:01:16.500
 directory, which is the user's home directory. So,

24
00:01:16.500 --> 00:01:19.700
 let's see in the Practical time. What exam we

25
00:01:19.700 --> 00:01:20.100
 create one.

26
00:01:20.800 --> 00:01:23.700
All right. So let's quickly navigate first into

27
00:01:23.700 --> 00:01:26.700
 the home directory, which is CD slash home and hit

28
00:01:26.700 --> 00:01:29.700
 enter and let's see what is over here. So

29
00:01:29.700 --> 00:01:32.100
 there are few users into this computer as you

30
00:01:32.100 --> 00:01:35.400
 can see admin bad joker Rohit shifa Etc,

31
00:01:35.400 --> 00:01:38.900
 which are the users that have been created and they're

32
00:01:38.900 --> 00:01:41.800
 each specific individual home directory

33
00:01:41.800 --> 00:01:44.600
 in which they can work now in case

34
00:01:44.600 --> 00:01:47.800
 you want to add a new user in this system and

35
00:01:47.800 --> 00:01:50.200
 automatically you want a home directory to

36
00:01:50.200 --> 00:01:53.200
 be created for that user in which they can work.

37
00:01:54.200 --> 00:01:57.400
For that the command that you are going to use is user add -

38
00:01:57.400 --> 00:02:00.300
 M now hyphen m stands

39
00:02:00.300 --> 00:02:03.500
 for to add a new home directory if does

40
00:02:03.500 --> 00:02:06.300
 not exist. So let's say we are going to add a

41
00:02:06.300 --> 00:02:09.200
 new user or let's say hacker Pro and I'm

42
00:02:09.200 --> 00:02:12.600
 going to hit enter and you can see it says the user already

43
00:02:12.600 --> 00:02:15.100
 exists. No problem. So we are

44
00:02:15.100 --> 00:02:18.400
 going to modify this and let's say instead of hacker. We

45
00:02:18.400 --> 00:02:20.700
 are going to add as cracker Pro and hit enter.

46
00:02:21.400 --> 00:02:24.700
And you can see it successfully added the user and

47
00:02:24.700 --> 00:02:27.100
 let's verify if a new directory has

48
00:02:27.100 --> 00:02:30.400
 been successfully created or not, and you can see there

49
00:02:30.400 --> 00:02:33.600
 is a new home directory for the user that

50
00:02:33.600 --> 00:02:36.900
 we created just now that was cracker Pro

51
00:02:36.900 --> 00:02:39.700
 now this user when makes

52
00:02:39.700 --> 00:02:43.000
 any changes or needs to do any configuration

53
00:02:42.300 --> 00:02:45.700
 file change. He can do that into his

54
00:02:45.700 --> 00:02:48.600
 respective home directory, which is Cracker Pro.

55
00:02:48.600 --> 00:02:51.700
 So, I hope you guys understood the importance and

56
00:02:51.700 --> 00:02:54.300
 usage of the home directory into

57
00:02:54.300 --> 00:02:55.900
 the Linux file system. Thank you.
