Afrikaans
Akan
Albanian
Amharic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
1
Now what if I wanted to move files.
2
The difference between copy and move is that the copy command would leave the file and it's our original
3
source.
4
So if I had a file and the temp directory and I copied it to documents I would have two copies of it
5
one and the temp directory and one under documents.
6
However we'll remove the file from temp and move it entirely to documents all have only one copy of
7
it.
8
As a side note and this is important to know more is also used as renaming function and Linux.
9
So in Microsoft Windows for example you can right click on a file and click on rename to change the
10
name of the file.
11
In Linux there is no the name commands.
12
We use the move command to rename files and folders.
13
So let's see how this works.
14
I'm going to create a file on the temp directory called to move and I'll do that using the command touch
15
space last time slash to move.
16
Let me list the contents of the temp directory.
17
And I can see that two more fight is over there.
18
Let's say now I want to move it to the Documents folder or the documents directory.
19
I can do that by typing M.V. for move slash Demps left to move to documents.
20
Look at the right hand side.
21
And there we go.
22
It moved there.
23
Now if I display the content of the temp directory I can notice that two more file is no longer there.
24
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
of times to keep going back and commands or in my command history.
26
So I'm going to do that to recreate the file under the term directory.
27
So now I've recreated the to move file again I display the content of the temp directory and the file
28
is recreated like in copy.
29
If I use the move command and the file already exists and the destination directory it will automatically
30
be overwritten.
31
So again if I move it from time to documents you notice that it got all the return and the original
32
file disappeared.
33
Let me created a third time.
34
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
Now let's see what happens.
36
It will ask me Do you want to write.
37
I'm going to say no.
38
Let's quickly revisit the copy command and see how we can use it easily with the DOT and the DOT DOT
39
notations that we saw previously.
40
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
copy to the documents folder.
42
I can do that in many ways.
43
The first way I'm going to be using it is C-p temp Ex-Files and the destination is taled which stands
44
for my home directory slash documents and notice that the file has been copied.
45
I'm going to delete it very quickly.
46
And now that I am in the documents directory I'm going to do the neat trick of using the dot which stands
47
for current working directory.
48
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
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
as a copy to documents.
51
Let's say instead of copying it to documents I want to copy it to the root directory.
52
And the way to do this is by typing see these less steps less as far as space.
53
Dot dot dot dot dot again stands for up one directory.
54
So in this case I'm copying the X-Files file to the root directory.
55
If I go up one directory using my graphical interface or see that the X-Files has been copied up one
56
directory which happens to be that directory.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.