Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

General Discussion

Alan Shahry
seal-mask
.a{fill-rule:evenodd;}techdegree
Alan Shahry
Full Stack JavaScript Techdegree Student 23,184 Points

How can I copy several directories at once and paste them one directory up in console?

I have a directory called World in console. In this directory, I have several directories with the names of continents. In each continents, there are directories with the names of several countries. In each countries, I have pictures. I am trying to: 1-Copy the contents of South_America directory (Brazil, Chile) into North_America directory 2) Change the name of the North_America directory to Americas.

I like to see World/Americas

Thanks!

4 Answers

What's your OS? Any reason why you can't just copy + paste? Or open multiple windows and click + drag?

Alan Shahry
seal-mask
.a{fill-rule:evenodd;}techdegree
Alan Shahry
Full Stack JavaScript Techdegree Student 23,184 Points

Hi Mikis, I am trying to learn console foundations. I like to be able to do these things without using the mouse and all in Terminal.

I see, figured that's what you probably wanted to do. This is one way of doing what you're trying to do:

cd ~/World
mv South_America/ Americas
mv North_America/ Americas

Here's a helpful cheatsheet.