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 Git Basics Getting Started With Git Committing Changes

Adam Rubinson
Adam Rubinson
4,286 Points

Up and down buttons

In the Terminal, at the beginning of a line, when I press up, the previous command is displayed.

But if I am not at the beginning of a new line, I don't know how to get something typed in a previous command to appear. But it looks like the author of these videos can do this shortcut.

So, how do you do it?

3 Answers

Ari Misha
Ari Misha
19,323 Points

Hiya there! Beginning of line or not, i can always get the previous command by pressing up arrow button. Always work in my terminal though.

Adam Rubinson
Adam Rubinson
4,286 Points

It doesn't work like that for me, in both the Treehouse terminal and my terminal (cmder). If it's not the beginning of a line and I press the up arrow button, everything on that line vanishes and is replaced by the previous command

Ari Misha
Ari Misha
19,323 Points

Oh that! I think i misunderstood your question lol he uses tab for that which autocompletes your commands (:

Adam Rubinson
Adam Rubinson
4,286 Points

Now we're on the same page. Tab gives me a list of options of what could complete the command, but I don't see how to use the options; I still have to type them manually (unless there is some way to copy and paste them or something??). Also, when I press tab, it does take a while to load the options, so for me it isn't a very good shortcut.

You can also use β€œhistory” to display all recent commands