1
00:00:04,560 --> 00:00:09,710
Now you know how to greet new files and how to edit them inside of the terminal using Shell.

2
00:00:10,260 --> 00:00:17,220
And we've used sideshow obligations as the I am and Nantel now is basically my favorite text editor.

3
00:00:17,700 --> 00:00:18,060
All right.

4
00:00:18,310 --> 00:00:23,630
Now let me show you how to copy files and how to move files and using move command.

5
00:00:23,720 --> 00:00:27,060
And you you could also rename file if you want.

6
00:00:27,570 --> 00:00:27,930
All right.

7
00:00:28,140 --> 00:00:31,230
Let's start by copying a specific file to a NAS or file.

8
00:00:31,470 --> 00:00:32,369
Let me get your terminal.

9
00:00:32,430 --> 00:00:36,470
And now I have several files here in home directory for this old user.

10
00:00:36,790 --> 00:00:43,890
And let me copy file three to dig deep, to file fraud, to dig deep and simply type S.P. file through

11
00:00:43,890 --> 00:00:44,530
the dig, Steve.

12
00:00:44,790 --> 00:00:47,850
And next, a second argument type name on the file.

13
00:00:47,910 --> 00:00:48,840
You want to copy it?

14
00:00:48,880 --> 00:00:52,640
This first file into file for DOT 60.

15
00:00:53,250 --> 00:00:55,350
Enter Ellis and Moe.

16
00:00:55,350 --> 00:00:58,200
I see file fraud, the DSD here in this list.

17
00:00:58,710 --> 00:01:01,230
Let's use additional option unless dash l.

18
00:01:01,560 --> 00:01:05,069
In order to see all sort permissions and the size of the files.

19
00:01:05,310 --> 00:01:11,680
And now I see the initials and size of those four files are completely the same there.

20
00:01:11,700 --> 00:01:17,430
A single difference here in the modification time because those files were created and modified at different

21
00:01:17,430 --> 00:01:18,150
moments of time.

22
00:01:18,870 --> 00:01:19,260
All right.

23
00:01:19,530 --> 00:01:21,960
That's how you could easily copious specific file.

24
00:01:22,380 --> 00:01:25,860
Also, you are able of Girlschool file from ARS or location.

25
00:01:26,040 --> 00:01:26,680
Let's do that.

26
00:01:27,030 --> 00:01:29,880
Let's copy a file, for example, from EDC folder.

27
00:01:30,120 --> 00:01:32,930
I'll start from Absolute Path Forward Slash.

28
00:01:33,060 --> 00:01:35,160
It is next for what's left.

29
00:01:35,400 --> 00:01:40,950
And if you'll press step twice, you'll see all possible names of directories and files you could use

30
00:01:40,950 --> 00:01:41,820
here in this command.

31
00:01:42,240 --> 00:01:44,970
And let's suppose that you want to copy this file.

32
00:01:45,030 --> 00:01:46,790
You could choose any file you want.

33
00:01:47,040 --> 00:01:47,540
Leap out.

34
00:01:47,540 --> 00:01:48,300
Did dot com.

35
00:01:48,780 --> 00:01:53,770
Let's edit the here in a path rescue prosecutors and the next list type liebe.

36
00:01:54,450 --> 00:01:57,900
Oh and let's press step like so it will be auto completed.

37
00:01:58,400 --> 00:02:03,310
And let's say that I want to copy this file into current home directory for road user.

38
00:02:03,630 --> 00:02:06,880
And let's suppose that they want to name it delete but I will do it back.

39
00:02:07,470 --> 00:02:09,440
Backup like so dot com.

40
00:02:10,169 --> 00:02:14,760
Press enter Ellis and no I see this newly created file.

41
00:02:15,150 --> 00:02:16,050
Let's read it.

42
00:02:16,440 --> 00:02:18,420
Got the Liebe but gobbled it.

43
00:02:19,290 --> 00:02:21,750
And I see some contents of this file.

44
00:02:22,170 --> 00:02:27,730
And let me actually quickly check the size of this file and modification time unless there's L.

45
00:02:27,960 --> 00:02:29,700
And here was this data.

46
00:02:30,300 --> 00:02:31,110
I see permissions.

47
00:02:31,500 --> 00:02:31,980
I see.

48
00:02:32,010 --> 00:02:32,520
Owner.

49
00:02:32,610 --> 00:02:33,270
Route user.

50
00:02:33,480 --> 00:02:36,470
And I see that this file was modified to date.

51
00:02:37,410 --> 00:02:37,800
All right.

52
00:02:38,050 --> 00:02:38,420
This go.

53
00:02:38,430 --> 00:02:39,030
You could copy.

54
00:02:39,090 --> 00:02:40,020
Single file.

55
00:02:40,350 --> 00:02:43,300
But what if you want to copy entire directory?

56
00:02:43,830 --> 00:02:44,480
Let's try it.

57
00:02:44,580 --> 00:02:45,540
Let me clear terminal.

58
00:02:45,600 --> 00:02:48,380
And let's here create folder gold.

59
00:02:48,480 --> 00:02:52,190
A DC backup like Soul allows L.A..

60
00:02:52,560 --> 00:02:54,310
And now this folder is present here.

61
00:02:54,480 --> 00:02:55,410
It is C backup.

62
00:02:55,950 --> 00:03:00,840
And let's copy and tie EDC folder to D.C. backup for that.

63
00:03:00,900 --> 00:03:05,510
You need to use same command CPM but with option that are required.

64
00:03:06,430 --> 00:03:09,600
And lesbians, if I hear path to EDC folder like so.

65
00:03:09,810 --> 00:03:12,540
And here will be a DC backup folder.

66
00:03:12,840 --> 00:03:15,380
Notice that here I have used absolute wealth.

67
00:03:15,660 --> 00:03:22,230
And here I have used or do path because now I am currently located in the folder that holds this subdirectory

68
00:03:22,380 --> 00:03:23,270
seat back backup.

69
00:03:23,670 --> 00:03:26,220
All right, let's press enter and see what will happen.

70
00:03:27,000 --> 00:03:28,170
Alas, that's L.A..

71
00:03:28,290 --> 00:03:29,470
Nothing was changed here.

72
00:03:29,700 --> 00:03:30,300
And let's now.

73
00:03:30,480 --> 00:03:33,480
Alas, the contents of a DC backup folder.

74
00:03:34,410 --> 00:03:37,220
And now here I see only single folder EDC.

75
00:03:37,980 --> 00:03:44,340
And if I have a look at contents of this folder, alas, a DC backup, but EDC, I'll see bunch of different

76
00:03:44,340 --> 00:03:45,630
files like a leap.

77
00:03:45,690 --> 00:03:46,030
I'll that.

78
00:03:46,500 --> 00:03:47,040
And so on.

79
00:03:47,580 --> 00:03:52,440
And that means that the folder DC itself was entirely Corbitt.

80
00:03:52,700 --> 00:03:54,430
Do you see backup folder.

81
00:03:55,260 --> 00:04:00,300
But what if you want to copy contents of the folder into Özer folder.

82
00:04:00,570 --> 00:04:03,060
I mean without this additional DC folder.

83
00:04:03,510 --> 00:04:06,770
In such case, we need to slightly modify input command.

84
00:04:07,320 --> 00:04:11,970
But first, let me remove this ADC folder from the DC backup folder.

85
00:04:12,330 --> 00:04:14,990
For that, we could go into a DC backup folder.

86
00:04:15,150 --> 00:04:16,860
Sidis it is seat backup.

87
00:04:17,310 --> 00:04:19,190
And here enter comment our M.

88
00:04:19,550 --> 00:04:21,070
This are DC.

89
00:04:21,329 --> 00:04:22,620
Please look at that dash.

90
00:04:22,710 --> 00:04:23,790
Our option is used.

91
00:04:23,850 --> 00:04:29,910
If you want to remove specific directory with files and subdirectories, let's press enter.

92
00:04:30,450 --> 00:04:32,560
And now this folder is absent here.

93
00:04:32,970 --> 00:04:34,740
Let's move one level up like so.

94
00:04:34,950 --> 00:04:38,460
And let's go back to the command that we have entered before.

95
00:04:39,030 --> 00:04:44,190
Actually, I have forgotten to show you that you are able to see entire list of all commands that you

96
00:04:44,190 --> 00:04:45,060
have entered before.

97
00:04:45,270 --> 00:04:47,060
By entering command history.

98
00:04:48,070 --> 00:04:53,170
And here you'll see all previous comments and actually here was comment that we have used in order to

99
00:04:53,170 --> 00:04:56,440
copy the D.C. folder into a D.C. backup folder.

100
00:04:57,270 --> 00:04:59,650
All right, let me know, modify this comment a bit.

101
00:04:59,710 --> 00:05:06,040
And with the modification, we'll copy contents of the DC folder into a DC backup folder.

102
00:05:06,520 --> 00:05:07,060
Let me do that.

103
00:05:08,020 --> 00:05:11,890
Again, this arm here will be, again, path to EDC folder.

104
00:05:12,070 --> 00:05:15,020
But no, I'll add forward slash and add here.

105
00:05:15,320 --> 00:05:16,260
Start like soul.

106
00:05:17,140 --> 00:05:23,980
And with this command we will copy contents of EDC folder into a destination folder and destination

107
00:05:23,980 --> 00:05:27,110
folder will be the same as before it received backup.

108
00:05:27,610 --> 00:05:29,400
We could alter complete command if you want.

109
00:05:30,160 --> 00:05:35,650
Let's not press enter and no, let's at least the contents of a DC backup folder.

110
00:05:35,890 --> 00:05:41,140
And now I see all files without any additional intermediate DC folder.

111
00:05:41,530 --> 00:05:44,420
That's what we have actually achieved using this command.

112
00:05:44,550 --> 00:05:46,130
It is C slash star.

113
00:05:46,960 --> 00:05:47,350
All right.

114
00:05:47,620 --> 00:05:50,350
This is how you're able to copy different directories.

115
00:05:51,040 --> 00:05:51,520
Let's move on.

116
00:05:51,550 --> 00:05:55,030
And now let me demonstrate to you how you could rename specific file.

117
00:05:55,480 --> 00:05:56,390
Let me clear time and no.

118
00:05:56,430 --> 00:05:58,470
And let's list files and folders here.

119
00:05:58,750 --> 00:06:04,290
And let's suppose that I want to rename file for the Dig Deep to file five DODIG Deep.

120
00:06:04,690 --> 00:06:06,540
For that you could use command and view.

121
00:06:06,970 --> 00:06:10,820
That stands for Move File for the takes you.

122
00:06:11,230 --> 00:06:16,180
And here is a second argument will be you file name for this file file.

123
00:06:16,270 --> 00:06:17,410
File Dodig Steve.

124
00:06:17,970 --> 00:06:18,410
Santorum.

125
00:06:18,710 --> 00:06:22,660
Alas and no, I don't see a file for the text here on this list.

126
00:06:22,840 --> 00:06:25,030
But a C file file of the extreme.

127
00:06:25,930 --> 00:06:32,980
And of course, contents of this file where unchaste and that they are the same as where included into

128
00:06:33,040 --> 00:06:34,220
file for the text.

129
00:06:35,100 --> 00:06:35,500
All right.

130
00:06:35,840 --> 00:06:38,200
That's how you could name a specific file.

131
00:06:38,650 --> 00:06:44,320
Now, let me show you how you could use same command in order to move a specific file from a specific

132
00:06:44,320 --> 00:06:45,790
location to Özal location.

133
00:06:46,420 --> 00:06:48,100
Let's list files and folders here.

134
00:06:48,580 --> 00:06:54,910
And let's suppose that I want to move a specific file from this newly created seat backup folder to

135
00:06:54,970 --> 00:06:56,110
this home directory.

136
00:06:56,440 --> 00:06:59,750
And let's move, for example, this file guy dot com.

137
00:07:00,670 --> 00:07:01,540
For that, I could use.

138
00:07:01,700 --> 00:07:04,810
And if you come out here, we'll be path to this file.

139
00:07:05,050 --> 00:07:06,310
I'll use a relative path.

140
00:07:06,490 --> 00:07:07,630
Is DC backup?

141
00:07:07,840 --> 00:07:09,830
And next, we'll be file name guy.

142
00:07:11,000 --> 00:07:13,990
And the next, I'll type simply the name of the file.

143
00:07:14,230 --> 00:07:17,800
That will be used for storage of this file in the new location.

144
00:07:18,160 --> 00:07:24,280
And if I want to move it without the modification of the file name, I could simply type guy dot.

145
00:07:24,910 --> 00:07:28,030
And it will be moved with the same name guy dot com.

146
00:07:28,600 --> 00:07:29,460
Let's press enter.

147
00:07:30,040 --> 00:07:30,970
Let's list files.

148
00:07:31,060 --> 00:07:32,800
And now I see here this file.

149
00:07:33,580 --> 00:07:40,280
And if I list the contents of EDC backup folder, I should see that this file will be absent here.

150
00:07:40,480 --> 00:07:41,680
And yes, that is a case.

151
00:07:42,220 --> 00:07:45,130
It was moved from this folder to a Nazare folder.

152
00:07:46,120 --> 00:07:50,160
That's how you could move file from a specific location to Oz location.

153
00:07:51,070 --> 00:07:51,460
All right.

154
00:07:51,880 --> 00:07:57,400
In the same way, you are also able to change the name of specific directory.

155
00:07:57,640 --> 00:08:04,810
For example, if you want to remain a DC backup, you could use same command and view it is C backup

156
00:08:05,080 --> 00:08:09,340
and let's rename it Do It DC backup to like.

157
00:08:09,340 --> 00:08:11,890
So let's press enter Ellis.

158
00:08:12,190 --> 00:08:16,150
And now I see that this folder was renamed A Deceit back up to.

159
00:08:16,570 --> 00:08:18,850
Let's list the contents of this folder.

160
00:08:18,940 --> 00:08:24,250
It is Sivak up to and no I see the same files as we have seen in DC backup folder.

161
00:08:25,090 --> 00:08:25,510
All right.

162
00:08:25,840 --> 00:08:27,100
That's all for Mannesmann.

163
00:08:27,130 --> 00:08:32,740
The files and the directories and the disclosure I have explained you hold two copy files and folders,

164
00:08:33,000 --> 00:08:38,380
hold to rename files and folders and hold to move files changing their location.

165
00:08:39,100 --> 00:08:40,120
That's all for this lousier.

166
00:08:40,150 --> 00:08:46,230
And in the next one, I'll tell you a bit more about reading files before we have used only got command,

167
00:08:46,390 --> 00:08:49,440
but there are additional commands like Dael and Head.

168
00:08:49,720 --> 00:08:51,670
Let me talk about them in the next lecture by.

