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 trialAdam Rubinson
4,286 PointsUp 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
19,323 PointsHiya there! Beginning of line or not, i can always get the previous command by pressing up arrow button. Always work in my terminal though.
Ari Misha
19,323 PointsOh that! I think i misunderstood your question lol he uses tab for that which autocompletes your commands (:
Adam Rubinson
4,286 PointsNow 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.
kjvswift93
13,515 PointsYou can also use βhistoryβ to display all recent commands
Adam Rubinson
4,286 PointsAdam Rubinson
4,286 PointsIt 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