Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1105  / 2 Years ago, wed, may 18, 2022, 8:47:54

I am new to Ubuntu. I am wondering how to copy files in terminal.



Source location
/home/Drive_1/file_1.txt



To be copied at
/home/Drive_2/



I am already inside Drive_1 and trying



cp file_1.txt /Drive_2



but this does not work.


More From » copy

 Answers
3

If both directories are in the same parent directory you should not put a / but a ../in fron of the directory to copy



# we are in /home/Drive_1
cp file_1.txt ../Drive_2


Your command is interpreted as




copy file to root/directory




not




copy file to /home/directory/Drive_2



[#5276] Friday, May 20, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tocklftime

Total Points: 110
Total Questions: 109
Total Answers: 100

Location: Mayotte
Member since Mon, Sep 12, 2022
2 Years ago
;