Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I stumbled across the command-d hot key which splits the terminal into 2 panes. But I cant find documentation anywhere on how to close the new pane or even switch the focus to it so I can use it. What are the other commands?

share|improve this question
Related to…, but the keyboard shortcut isn't mentioned there. – patrix Mar 29 '13 at 14:53
up vote 47 down vote accepted

The idea behind splitting is that it allows you to keep a certain part of the shell buffer displayed while continuing to enter new commands. So only the lowest split does allow keyboard input. To position the view on the shell buffer use the scroll bar.

You can un-split by pressing Shift-Cmd-D.

share|improve this answer
Thanks, I read that shift-cmd-d split horizontally somewhere else but never tried it. – schwiz Mar 29 '13 at 14:47
It's in the menu actually :-) – patrix Mar 29 '13 at 14:49
Is it also possible to create a new terminal session instead on split? – Erik Aigner Jan 8 '14 at 11:27

In the most current version of Iterm2, navigate to Preferences > Profiles > Keys.

Select the + sign and add new key shortcut. Then scroll to the bottom and select Send Escape Sequence. Do this twice and after you select escape sequence simply put a b in the text box for left and an f for right.

More information found here:

share|improve this answer

Like the top answer says, to undo the split is ⌘ Shift ⌘Command D.

I just wanted to add that in general OS-X shortcuts that are done with ⌘ Command-char are undone (or the opposite/complement command is executed) with ⌘ Command ⌘ Shift-char.

share|improve this answer

Your Answer


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.