Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
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
Indonesian
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
Let's see now how we can copy files and directories.
2
Let me open the graphical interface so you can visualize what's happening in real time.
3
And I'm going to fix that a little bit so that fit and my skin in the coding
4
and know what I want to do is I want to copy the test file that I created previously in the temp directory
5
to the documents directory.
6
Again here I'm typing tab for completion and this particular case I'm typing.
7
TAB TAB because I have to test files one test file and want this file too.
8
So the system doesn't know exactly which one I'm referring to.
9
If I type tab once I type tab twice and the system tells me there are two files and this is going to
10
go with the first one and the structure for the copy command is C.P. the file.
11
I want to copy and then the destination I want to copy to.
12
So in this example I'm copying the text file from directory temp and the destination I wanted to be
13
the documents directory.
14
You know what I mean on purpose change that and type it wrongly so you can see how the Linux case sensitivity
15
works.
16
I'm changing the documents from capital-T to small-D.
17
Notice what happens now.
18
Look at the right side.
19
If I type LS notice that I have now a new file called Documents
20
and if I look on the right side I can verify that.
21
And you file those documents has been created.
22
So what happened.
23
I mistyped the documents folder name which starts with a capital D and instead of using a capital D
24
I used a small d.
25
So the copy command understood this.
26
Understood that I want to copy the file name test file and the destination that I wanted to be copied
27
to is the file called documents.
28
In other words it's like I'm copying the text file and renaming it to documents.
29
So both now test file and documents file are exactly the same.
30
It's like in Windows when you copy a file from one directory to another and rename it.
31
This is exactly what happened here.
32
I'm going to clear my screen and let's now do it the correct way.
33
I'm going to say Copy time test file.
34
And now I'm going to type it correctly using a capital D which is my copy command to copy the text file
35
into the documents directory.
36
Now if I go to the documents directory I'll see that the test file has been copied there.
37
Good stuff.
38
Let's say I want to copy it under a different name.
39
I can do exactly just that copy time testified to documents slash different name or whatever name you
40
want to give it.
41
Let me have another look at the content of them.
42
So I have directed the one if you remember in directory one there was another directory nested into
43
it called directory to let's say I want to copy the entire contents of directory one and directory to
44
the documents
45
the way I can do that as using the minus Otter option which means copy recursively so C.P dash are slash
46
them did one and two documents.
47
And here we go.
48
Look at the right hand side.
49
We have a folder data on and inside this for the DA to let's say I want to copy it under a different
50
name.
51
I can do that easily by giving it whatever name I want.
52
And again if I go to a different name I'll find that inside it is dear to.
53
Now here's the thing about copy it copies without asking us if we want to overwrite a file of the file
54
already exists in Microsoft Windows by default.
55
If I'm copying a file over a preexisting file it will either automatically rename it for us or it will
56
ask us if we want to overwrite it in Linux.
57
It doesn't ask why default by default it will overnight tonight if I do again copy temp tests file into
58
documents the old test file will be overwritten without me even being prompted.
59
One simple way to change that is to use the minus option which stands for interactive.
60
So now if I type C minus I the temp test file into documents.
61
Linux will tell me the file exists you want to overwrite it.
62
I can either say yes or no and proceed.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.