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

console navigation

Hi There! That might be a silly question but, i cant figure out how to move around using "3house" console. In the video Jim says that you need to use the arrow keys to move around, but for me it doesnt work that way... So, do you know what might be the problem, or how i can fix it???

Thanks

1 Answer

Andrew Shook
Andrew Shook
31,709 Points

Never used the 3house console, but from mu understanding it simulates a unix/linux console. If that is the case, then "moving around" requires the cd , short for change directory, command. First type in ls -a, an alias for the command "list all directories". This will show you all the files and subdirectories of the current directory you are in. Next pick the directory you want to go to and type cd nameOfDirectory, this will move you to the next directory where you can repeat the first step. If you want to move back up a directory you can use cd ../. I never heard of navigating a unix/linux system using the arrow keys, but using the up and down arrow keys will "scroll" through all the previous commands you have used. So if you just typed in cd ../ and went up a directory, and you need to move up one more, you can hit the up arrow and cd ../ will appear in the prompt. Hope this helps.

sorry i wasnt clear enogh, by moving around i mean to move around in a text document, when you open a text file and you want to edit it... - i just can, my cursor is stack to the "$" sign and all i can is to write a new commend, but i cant move up and down and change or edit the text in the console...

Andrew Shook
Andrew Shook
31,709 Points

what are you using to edit the document? I would recommend nano, vi, or vim. If you are using less, that is used for reading files. If you want to edit a file while you are viewing it in less type v and less will open whatever text editor is available.

that makes sense, just the video doesnt mention that, so i was wandering how it works, thank you very much that, now i know how to use it...