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 trialTristan Gaebler
6,204 PointsConsole Foundations Extra Credit
What is the correct code for the extra credit on the section " Getting started with console" in console foundations?
4 Answers
notf0und
11,940 PointsSo this extra credit assignment wants you to create a directory, then create some .txt files inside of it.
Step 1: Create a new directory: mkdir extraCredit
Confirm it's there with ls
Step 2: Change directory into extraCredit: cd extraCredit
Step 3: Create a .txt file. You have some option here. A) Create an empty .txt file, or B) Create one with content. We'll do B
cat >notes.txt
then type in your content. Press Control+D to save that file. Confirm it's there with ls
and confirm it has content with cat notes.txt
Done! You could fool around with that more to help you get a better understanding, and make it muscle memory.
Nicholas Mejia
23,800 Pointsmkdir <--name of file to create-->
Make sure to omit the <-- --> when typing the name of course.
Just make sure you are in the directory you want to create the sub directory in :)
Tristan Gaebler
6,204 Pointsit's asking me to transfer text files into that directory. Ho do I do that?
Nicholas Mejia
23,800 Pointsuse the mv command
mv <--filename--> <--directory for file-->
again, make sure your in the directory that contains the file that needs to be moved, otherwise you will have to use . and / to denote where the file i located
Tristan Gaebler
6,204 PointsThanks