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

Development Tools

Caleb Kleveter
MOD
Caleb Kleveter
Treehouse Moderator 37,862 Points

Adding a user in console.

Why do I need to enter "bash treehouse ~ $ curl -L trhou.se/path01 | bash"? What does it do?

2 Answers

Hi,

curl -L "link" downloads the file from the link; “ | " is the "pipe" sign which means all together -> download that file and send it to the bash. So you pipe the file to the bash enviroment for execution.

Try typing: curl -L trhou.se/path01 after try ls (to list the files in current folder) and finally nano "file-name" to see the guts of the file which I think is a script that adds a user to the enviroment.

You should check on google for the commands: "curl", “ | “ in Linux, "bash" this will give you more info and it'll be easier to understand how they work together.

Reminder: if you progress in the course all will be explained from the teacher.