Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Alan Shahry
seal-mask
.a{fill-rule:evenodd;}techdegree
Alan Shahry
Full Stack JavaScript Techdegree Student 23,574 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,574 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.