Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have been looking into this - but I can't get previous entered commands in Terminator (multi-terminal). I have looked into the Preference but I don't see how it is done.

I know this is not really Ubuntu question, but I am sure many of you have used Terminator.

Does anyone know how to get the previous entered commands?

Thanks!

share|improve this question
    
make sure you use a shell that supports arrow up/down like bash. –  Rinzwind May 29 '11 at 20:52
    
yes. i was. i reinstalled terminator. and now it works. thanks to all of you –  CppLearner May 29 '11 at 23:20

3 Answers 3

up vote 5 down vote accepted

You can try typing:

history

in your terminal.

Or you could search it with CTRL-r.

share|improve this answer
    
thanks i didnt know CTRL-R was there too! –  CppLearner May 29 '11 at 23:21
    
Glad to help! :) –  miloshadzic May 29 '11 at 23:26

Also You can just use the up-arrow to see the previously used commands.

share|improve this answer
    
thanks! –  CppLearner May 29 '11 at 23:21

Try with this:

  1. edit /etc/inputrc

sudo vim /etc/inputrc

  1. uncomment or add this two line

    "\e[5~": history-search-backward

    "\e[6~": history-search-forward

  2. logout/login


then try to write some command listed in history...

like...

ls -lah

write

ls

and press

page up

If you did everything right it should auto-complete your command :)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.