Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,140 --> 00:00:03,470
Now what if I wanted to move files.
2
00:00:03,570 --> 00:00:08,430
The difference between copy and move is that the copy command would leave the file and it's our original
3
00:00:08,670 --> 00:00:09,170
source.
4
00:00:09,170 --> 00:00:15,090
So if I had a file and the temp directory and I copied it to documents I would have two copies of it
5
00:00:15,420 --> 00:00:18,990
one and the temp directory and one under documents.
6
00:00:19,050 --> 00:00:25,440
However we'll remove the file from temp and move it entirely to documents all have only one copy of
7
00:00:25,440 --> 00:00:26,160
it.
8
00:00:26,550 --> 00:00:33,780
As a side note and this is important to know more is also used as renaming function and Linux.
9
00:00:33,780 --> 00:00:39,540
So in Microsoft Windows for example you can right click on a file and click on rename to change the
10
00:00:39,540 --> 00:00:40,660
name of the file.
11
00:00:40,890 --> 00:00:43,190
In Linux there is no the name commands.
12
00:00:43,260 --> 00:00:47,000
We use the move command to rename files and folders.
13
00:00:47,040 --> 00:00:49,130
So let's see how this works.
14
00:00:49,200 --> 00:00:55,980
I'm going to create a file on the temp directory called to move and I'll do that using the command touch
15
00:00:56,520 --> 00:00:59,140
space last time slash to move.
16
00:00:59,640 --> 00:01:02,340
Let me list the contents of the temp directory.
17
00:01:02,520 --> 00:01:05,380
And I can see that two more fight is over there.
18
00:01:05,790 --> 00:01:10,940
Let's say now I want to move it to the Documents folder or the documents directory.
19
00:01:10,980 --> 00:01:17,170
I can do that by typing M.V. for move slash Demps left to move to documents.
20
00:01:17,370 --> 00:01:18,860
Look at the right hand side.
21
00:01:19,140 --> 00:01:20,490
And there we go.
22
00:01:20,520 --> 00:01:22,710
It moved there.
23
00:01:22,880 --> 00:01:29,730
Now if I display the content of the temp directory I can notice that two more file is no longer there.
24
00:01:29,870 --> 00:01:36,440
By the way if I want to read this play the previous commands I can use the up arrow and type at a number
25
00:01:36,440 --> 00:01:41,080
of times to keep going back and commands or in my command history.
26
00:01:41,120 --> 00:01:45,220
So I'm going to do that to recreate the file under the term directory.
27
00:01:45,350 --> 00:01:52,730
So now I've recreated the to move file again I display the content of the temp directory and the file
28
00:01:52,730 --> 00:01:55,100
is recreated like in copy.
29
00:01:55,100 --> 00:02:01,430
If I use the move command and the file already exists and the destination directory it will automatically
30
00:02:01,430 --> 00:02:02,710
be overwritten.
31
00:02:02,930 --> 00:02:09,980
So again if I move it from time to documents you notice that it got all the return and the original
32
00:02:09,980 --> 00:02:11,210
file disappeared.
33
00:02:11,360 --> 00:02:13,010
Let me created a third time.
34
00:02:13,010 --> 00:02:26,030
And now when I want to move it I'm going to use like and copy the minus i option which sounds for interactive.
35
00:02:26,050 --> 00:02:27,630
Now let's see what happens.
36
00:02:30,490 --> 00:02:32,470
It will ask me Do you want to write.
37
00:02:32,520 --> 00:02:34,090
I'm going to say no.
38
00:02:35,380 --> 00:02:42,370
Let's quickly revisit the copy command and see how we can use it easily with the DOT and the DOT DOT
39
00:02:42,370 --> 00:02:44,660
notations that we saw previously.
40
00:02:45,010 --> 00:02:51,580
I'm going to go back to my documents folder and in my temp folder I have the X Files which I want to
41
00:02:51,580 --> 00:02:53,730
copy to the documents folder.
42
00:02:53,890 --> 00:02:56,080
I can do that in many ways.
43
00:02:56,080 --> 00:03:04,330
The first way I'm going to be using it is C-p temp Ex-Files and the destination is taled which stands
44
00:03:04,330 --> 00:03:10,670
for my home directory slash documents and notice that the file has been copied.
45
00:03:10,780 --> 00:03:12,970
I'm going to delete it very quickly.
46
00:03:15,460 --> 00:03:23,050
And now that I am in the documents directory I'm going to do the neat trick of using the dot which stands
47
00:03:23,050 --> 00:03:24,880
for current working directory.
48
00:03:24,880 --> 00:03:32,260
So now if I type C-p slash dump slash Ex-Files space Daut I'm telling Linux that I want to copy the
49
00:03:32,260 --> 00:03:39,400
X Files into whatever I am right now and it happens that I am in documents and as we can see the X Files
50
00:03:39,400 --> 00:03:41,500
as a copy to documents.
51
00:03:41,500 --> 00:03:46,240
Let's say instead of copying it to documents I want to copy it to the root directory.
52
00:03:46,330 --> 00:03:50,950
And the way to do this is by typing see these less steps less as far as space.
53
00:03:50,950 --> 00:03:56,510
Dot dot dot dot dot again stands for up one directory.
54
00:03:57,010 --> 00:04:02,760
So in this case I'm copying the X-Files file to the root directory.
55
00:04:02,890 --> 00:04:10,150
If I go up one directory using my graphical interface or see that the X-Files has been copied up one
56
00:04:10,150 --> 00:04:12,970
directory which happens to be that directory.
5795
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.