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

use of a / after directory name , ie. cp bird.txt mall/ (1:10 into video)

I notice about 1:10 into the video he types the command
cp bird.txt mall/ But I see when I test out a similar attempt on Terminal (not workspace), I am able to copy a file into a subdirectory without the / following the directory name.

Is there a reason he includes it here?

2 Answers

Hi Rick! You are absolutely correct. The / following a directory name is completely voluntary in this case. He includes it because it is his preference.

cp bird.txt mall is the same as cp bird.txt mall/

Either is acceptable.

Thank you, Robert