Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When working with gnome-terminal, I found that I often want to open a second copy of a tab: e.g. during a ssh session, I may need a second session at the same host and same remote path; or a second mc when two panels aren't enough. Is this possible?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

You can't duplicate the entire state of a tab. It would involve somehow copying a whole process tree, which (if possible at all) is black magic (and wouldn't even work with network connections).

The reason is because a terminal program only knows what processes are running under it, but not their internals, and especially not the state of remote processes. You could make it start a ssh user@host with the same arguments as the currently running ssh, but you cannot force it to the same remote path.*


* I sometimes do this: (connection A) pwd > ~/foo; (connection B) cd $(< ~/foo)

share|improve this answer
add comment

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.