Sunday, May 5, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 17402  / 1 Year ago, sun, january 15, 2023, 4:03:41

new to ubuntu and i keep reading the stuff posted but it isn't working for me, help!!! I am missing something hope someone can help. I am trying to copy files from one folder to another. when i do this it copies all folders into the the folder. the problem is i didnt want copies of all the folders i just wanted the files in the one folder to copy to another folder:



cp -a /home/troy/Downloads/ . /home/troy/.gs/

More From » command-line

 Answers
7

Open the terminal and run:



find /home/troy/Downloads/ -type f -exec cp {} /home/troy/.gs/ ;

[#28783] Monday, January 16, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
admin

Total Points: 459
Total Questions: 112
Total Answers: 109

Location: Equatorial Guinea
Member since Sun, Feb 14, 2021
3 Years ago
;