1
00:00:04,440 --> 00:00:05,040
Let's proceed.

2
00:00:05,080 --> 00:00:11,070
And now let's talk about creation and removal of all directories and files, and let's do that in a

3
00:00:11,070 --> 00:00:12,660
home folder for that.

4
00:00:12,660 --> 00:00:15,250
Let's Sidy and notice that here.

5
00:00:15,290 --> 00:00:15,660
Come on.

6
00:00:15,680 --> 00:00:17,140
Braund was changed to deal done.

7
00:00:17,430 --> 00:00:18,870
And let's clear terminal.

8
00:00:19,290 --> 00:00:21,630
And first, let's create a new folder here.

9
00:00:21,660 --> 00:00:24,580
And before doing that, lets leased files and folder was No.

10
00:00:24,870 --> 00:00:29,520
And there are no files and folders at the moment in home directory for this Rouda user.

11
00:00:30,330 --> 00:00:33,080
All right, let's create a new folder called Test.

12
00:00:33,350 --> 00:00:35,940
And for that you can use command and gate D i r.

13
00:00:36,150 --> 00:00:37,830
And here is argument sublight.

14
00:00:37,920 --> 00:00:40,080
Name of the folder you want to create.

15
00:00:40,890 --> 00:00:41,500
Press enter.

16
00:00:41,820 --> 00:00:43,650
And now there is a single folder.

17
00:00:43,780 --> 00:00:44,140
Test.

18
00:00:44,550 --> 00:00:44,880
Great.

19
00:00:45,300 --> 00:00:47,700
Let me show you how you could create a sub folder.

20
00:00:48,150 --> 00:00:50,180
Let's type N.K. d item.

21
00:00:50,640 --> 00:00:52,210
Test and type.

22
00:00:52,370 --> 00:00:53,150
Test one.

23
00:00:53,910 --> 00:00:55,970
And if I was cydia to test and list.

24
00:00:56,100 --> 00:00:57,240
File and folder Ischia.

25
00:00:57,480 --> 00:00:58,090
I'll see it.

26
00:00:58,130 --> 00:01:01,530
Test one subdirectory in the test directory.

27
00:01:01,920 --> 00:01:04,200
All right, let's go one level up.

28
00:01:04,340 --> 00:01:05,200
Sidiq two dots.

29
00:01:05,670 --> 00:01:07,650
And let's create a following folder.

30
00:01:07,750 --> 00:01:12,660
MKC the item test to slash test three.

31
00:01:13,380 --> 00:01:18,000
Notice that they want to create test three folder inside of the test to folder.

32
00:01:18,570 --> 00:01:20,490
Let's press enter and see what will happen.

33
00:01:20,550 --> 00:01:25,470
And I see error cannot create directory test to slash test three.

34
00:01:25,560 --> 00:01:27,300
No such file or directory.

35
00:01:27,890 --> 00:01:30,810
And if you want to create a subdirectory in the directory.

36
00:01:30,990 --> 00:01:32,340
The disk currently absent.

37
00:01:32,490 --> 00:01:34,730
There was no test to directory here.

38
00:01:35,160 --> 00:01:35,840
Let me at type.

39
00:01:35,900 --> 00:01:37,860
Alas, there was only a test folder.

40
00:01:38,400 --> 00:01:42,840
And if you want to do so, you need to use additional option in mce d.

41
00:01:42,900 --> 00:01:46,830
I recommend this beep that will create Biram directories as well.

42
00:01:47,160 --> 00:01:47,670
Let's do that.

43
00:01:48,060 --> 00:01:49,210
And D are.

44
00:01:49,530 --> 00:01:53,790
You could always go back to previous commands by pressing up Arrow and here.

45
00:01:53,870 --> 00:01:59,100
That's an option DSP and no test to folder was created successfully.

46
00:01:59,460 --> 00:02:00,810
Alas, here it is.

47
00:02:01,140 --> 00:02:03,940
And let's alas test too.

48
00:02:04,350 --> 00:02:07,710
And I see test three folder inside of the test folder.

49
00:02:08,400 --> 00:02:11,700
This how you could create directories and subdirectories.

50
00:02:12,120 --> 00:02:12,510
All right.

51
00:02:12,750 --> 00:02:17,230
Let's not remove those all directories and less files to remove.

52
00:02:17,310 --> 00:02:18,140
Desk directory.

53
00:02:18,300 --> 00:02:21,510
Our AMP test and Iasi error cannot remove.

54
00:02:21,510 --> 00:02:23,280
Test is a directory.

55
00:02:23,910 --> 00:02:26,190
And it means that we are amcom aren't.

56
00:02:26,250 --> 00:02:31,470
You could safely remove a single file or multiple files using space between them.

57
00:02:32,010 --> 00:02:35,370
But you are not able to remove directory for that.

58
00:02:35,400 --> 00:02:36,800
You need to use additional option.

59
00:02:36,990 --> 00:02:41,810
This are Oracle resume, lexically a terminal and use our M dash arm.

60
00:02:42,000 --> 00:02:47,310
And here type name of the folder and press enter and noticed folder is no longer present here.

61
00:02:48,180 --> 00:02:50,760
Let's not do the same with best to folder.

62
00:02:50,970 --> 00:02:53,730
Please accept that it contains additional subfolder.

63
00:02:54,060 --> 00:02:58,750
Let's r m this r test to and this test.

64
00:02:58,760 --> 00:03:00,540
The folder was removed as well.

65
00:03:00,900 --> 00:03:02,830
Let's list files and folders and notice absent.

66
00:03:03,970 --> 00:03:04,450
All right.

67
00:03:04,740 --> 00:03:09,150
Let's not create again test folder mkc d i r test.

68
00:03:09,760 --> 00:03:11,290
Let's siddhi to this test folder.

69
00:03:11,730 --> 00:03:13,140
And let's create new file.

70
00:03:13,500 --> 00:03:16,960
If you want to create new file, you could use different approaches.

71
00:03:17,340 --> 00:03:21,660
If you want to create empty file, you could use dash command and simply type deitsch.

72
00:03:21,900 --> 00:03:23,070
And here is argument.

73
00:03:23,160 --> 00:03:24,360
Sublight file name.

74
00:03:24,660 --> 00:03:29,180
And let's create a file called File one dot Deakes Deep Press Enter.

75
00:03:29,430 --> 00:03:31,530
And now this file was created.

76
00:03:31,800 --> 00:03:34,080
But of course, at the moment this file is empty.

77
00:03:35,070 --> 00:03:39,970
If you want to create file with some contents, you could use a photo increment echo.

78
00:03:40,770 --> 00:03:42,690
Let's say hello, Rold.

79
00:03:43,710 --> 00:03:47,370
And here, use Graden sign that will create new file.

80
00:03:47,430 --> 00:03:52,510
And right on the street and here will be file, name, file to dot the extreme.

81
00:03:52,950 --> 00:03:59,820
Please remember from previous sections that this operator actually redirects SDD out from the previous

82
00:03:59,870 --> 00:04:00,310
command.

83
00:04:00,450 --> 00:04:02,900
This one to specific file.

84
00:04:03,120 --> 00:04:06,840
In this case, file to DODIG, still less press enter.

85
00:04:07,590 --> 00:04:13,620
And if I have a look at the files and folders here now I'll see file do DODIG stay on the list.

86
00:04:14,250 --> 00:04:18,029
And you can use the card command in order to read contents of specific file.

87
00:04:18,390 --> 00:04:20,370
Let's first read contents of file.

88
00:04:20,450 --> 00:04:26,520
Wando digs deep and now this file is empty because I have simply created it using dyche command here.

89
00:04:27,300 --> 00:04:29,890
Let's go look at contents of file to the tax deal.

90
00:04:30,480 --> 00:04:33,170
And now this file contains text a lot, Rolt.

91
00:04:33,650 --> 00:04:40,740
And thus because of this command we have sent to study out the data stream from this comment to specific

92
00:04:40,740 --> 00:04:42,510
file file to the text.

93
00:04:43,110 --> 00:04:43,500
All right.

94
00:04:43,890 --> 00:04:47,180
Let's now go back one level up to home directory.

95
00:04:47,640 --> 00:04:50,910
And the note we have here, single directory test.

96
00:04:51,330 --> 00:04:56,070
Let's not try to remove this directory using our M this argument.

97
00:04:56,430 --> 00:04:58,320
And here will be the name of the directory.

98
00:04:58,380 --> 00:04:58,770
Test.

99
00:04:59,880 --> 00:05:01,860
And this directory was removed.

100
00:05:02,070 --> 00:05:04,890
Let's have a look at the contents of the home directory now.

101
00:05:05,070 --> 00:05:06,110
And notice empty.

102
00:05:06,480 --> 00:05:09,300
That means that using dish are option in our AMCOM.

103
00:05:09,300 --> 00:05:11,510
And you could remove not just directories.

104
00:05:11,700 --> 00:05:15,360
You could remove also subdirectories and all files located inside.

105
00:05:16,230 --> 00:05:17,160
That's all for this lecture.

106
00:05:17,190 --> 00:05:20,430
And next, let me explain you how to edit files.

107
00:05:20,550 --> 00:05:21,270
I'll see you next.

108
00:05:21,390 --> 00:05:21,740
Bye bye.

