Lesson 2 – How to copy a file from one directory to another directory

final
1.) Go to “newfolder_1” (file containing directory) .

 cd newfolder_1 

newfolder1_image

then see the list of files in newfolder_1 directory typing “ls” command in terminal .

newfolder_1_files

2.) Type the “cp” command (copy command) to copy the “test.txt” file from the “newfolder_1” to “newfolder_2” as below .

 cp test.txt ~/newfolder_2 

copyCommand

then go to “newfolder_2” directory .

 cd ../newfolder_2 

gotonewfolder2

now you are in “newfolder_2” directory .

nowyourinnewfolder2

3.) See the files list in “newfolder_2” typing “ls” command .

chekthecopiedfile

Leave a Comment