1

I was using Terminal.app to to use the ssh command and I opened the "New Remote Connection" window. There is this long text box under the "user" box that displays the ssh ... commands that were entered. How do I clear my input? It just displays all of my server names that were entered? The delete doesn't seem to work?

1 Answer 1

4

You can clear the New Remote Connection history (which is shown in the dropbox that you mentioned) by typing the following in an active Terminal window:

defaults write com.apple.Terminal PreviousCommands '()'

Then, quit and restart Terminal and the history should be empty.

3
  • Thanks for getting back, but it isn't working. I still see the server names. I exactly followed what you said.
    – Java_Coder
    Commented May 10, 2013 at 17:28
  • I apologize! It is working fine. Thanks so much!! :-)
    – Java_Coder
    Commented May 10, 2013 at 17:37
  • Be sure to quit Terminal and open it again to see the changes. Commented Dec 10, 2019 at 22:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .