Server Fault is a question and answer site for system and network administrators. 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 want to know how to accomplish this: Open a new window in GNU/screen, by running a command.

Here's what I want to do:
I uses GNU/screen daily. My laptop runs in UTF-8 locale, and I need to ssh to some specific servers which runs in GBK locale.
Normally I need to change encoding after I ssh to the server. I'm looking for an automatic way, which allows me just alias a series of command and then start the ssh GBK_LOCALE_SERVER command in another GBK-encoding GNU/screen window

share|improve this question
up vote 6 down vote accepted

/usr/bin/screen knows it's running within a screen session; if you pass it a command as an argument, it will run that command in a new tab.

So, from a shell within screen, you can just run


and the result will appear in a new window in the current screen.

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.